keybindinglookup

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeybindingLookup

type KeybindingLookup interface {
	// Given editor-specific keybinding config and keybinding, return the keybinding config string.
	Lookup(editorSpecificConfig io.Reader, keybinding *keymap.KeyBinding) (keybindingConfig []string, err error)
}

type LookupFactory

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

LookupFactory manages KeybindingLookup implementations for different editors

func NewLookupFactory

func NewLookupFactory() *LookupFactory

NewLookupFactory creates a new factory instance

func (*LookupFactory) CreateLookup

func (f *LookupFactory) CreateLookup(editorName string) (KeybindingLookup, error)

CreateLookup creates a KeybindingLookup instance for the specified editor

func (*LookupFactory) GetSupportedEditors

func (f *LookupFactory) GetSupportedEditors() string

GetSupportedEditors returns a comma-separated list of supported editor names

func (*LookupFactory) IsSupported

func (f *LookupFactory) IsSupported(editorName string) bool

IsSupported checks if an editor is supported

func (*LookupFactory) Register

func (f *LookupFactory) Register(editorName string, constructor func() KeybindingLookup)

Register registers a KeybindingLookup constructor for a specific editor

Jump to

Keyboard shortcuts

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