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 ¶
- type Factory
- func (f *Factory) NewBookmarkPanel() panels.Panel
- func (f *Factory) NewFuzzyFinder(mode string, bindings []keymap.Binding) panels.Panel
- func (f *Factory) NewHelpPanel() panels.Panel
- func (f *Factory) NewSettingsPanel(currentPos layout.PreviewPosition, currentTheme string, themeNames []string, ...) panels.Panel
- func (f *Factory) NewWelcomePanel() panels.Panel
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 (*Factory) NewBookmarkPanel ¶
NewBookmarkPanel creates the bookmarks overlay panel.
func (*Factory) NewFuzzyFinder ¶
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 ¶
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 ¶
NewWelcomePanel creates the welcome overlay panel.