overlayreg

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package overlayreg provides a concrete overlay panel factory that imports individual overlay panel packages. This isolates the import coupling in a single bootstrap package so that the tui package depends only on the OverlayCreator interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	// contains filtered or unexported fields
}

Factory constructs overlay panels (bookmarks, fuzzy finder, help, settings, welcome) behind the panels.Panel interface.

func New

func New(th *theme.Theme, bmMgr *bm.Manager) *Factory

New creates a Factory wired with the shared dependencies that overlay panels need.

func (*Factory) NewBookmarkPanel

func (f *Factory) NewBookmarkPanel() panels.Panel

NewBookmarkPanel creates the bookmarks overlay panel.

func (*Factory) NewFuzzyFinder

func (f *Factory) NewFuzzyFinder(mode string, bindings []keymap.Binding) panels.Panel

NewFuzzyFinder creates a fuzzy finder overlay for the given mode. Supported modes: "files", "commands", "directories". The bindings parameter is used for the "commands" mode source.

func (*Factory) NewHelpPanel

func (f *Factory) NewHelpPanel() panels.Panel

NewHelpPanel creates the help overlay panel.

func (*Factory) NewSettingsPanel

func (f *Factory) NewSettingsPanel(
	currentPos layout.PreviewPosition,
	currentTheme string,
	themeNames []string,
	actionsCfg config.ActionsConfig,
) panels.Panel

NewSettingsPanel creates the settings overlay panel with the given configuration state.

func (*Factory) NewWelcomePanel

func (f *Factory) NewWelcomePanel() panels.Panel

NewWelcomePanel creates the welcome overlay panel.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL