Documentation
¶
Index ¶
- Variables
- func FormatKeybinding(keybind *keybinding.Keybinding, plat platform.Platform) (string, error)
- func New(mappingConfig *mappings.MappingConfig, logger *slog.Logger, ...) pluginapi.Plugin
- func NewCursor(mappingConfig *mappings.MappingConfig, logger *slog.Logger, ...) pluginapi.Plugin
- func NewVSCodeKeybindingLookup() keybindinglookup.KeybindingLookup
- func NewWindsurf(mappingConfig *mappings.MappingConfig, logger *slog.Logger, ...) pluginapi.Plugin
- func NewWindsurfNext(mappingConfig *mappings.MappingConfig, logger *slog.Logger, ...) pluginapi.Plugin
- func ParseKeybinding(keybind string, plat platform.Platform) (*keybinding.Keybinding, error)
Constants ¶
This section is empty.
Variables ¶
var ErrConfigNotFound = errors.New("configuration file not found")
Functions ¶
func FormatKeybinding ¶ added in v0.6.0
func FormatKeybinding(keybind *keybinding.Keybinding, plat platform.Platform) (string, error)
FormatKeybinding formats a Keybinding struct into a VSCode keybinding string. The plat parameter specifies the target platform for formatting modifier keys. If plat is empty, it defaults to the current runtime platform.
func New ¶
func New(mappingConfig *mappings.MappingConfig, logger *slog.Logger, recorder metrics.Recorder) pluginapi.Plugin
New creates a new VSCodePlugin instance.
func NewCursor ¶ added in v0.2.0
func NewCursor( mappingConfig *mappings.MappingConfig, logger *slog.Logger, recorder metrics.Recorder, ) pluginapi.Plugin
NewCursor creates a Cursor plugin instance.
func NewVSCodeKeybindingLookup ¶ added in v0.5.2
func NewVSCodeKeybindingLookup() keybindinglookup.KeybindingLookup
NewVSCodeKeybindingLookup creates a new KeybindingLookup instance
func NewWindsurf ¶ added in v0.2.0
func NewWindsurf( mappingConfig *mappings.MappingConfig, logger *slog.Logger, recorder metrics.Recorder, ) pluginapi.Plugin
NewWindsurf creates a Windsurf plugin instance.
func NewWindsurfNext ¶ added in v0.2.0
func NewWindsurfNext( mappingConfig *mappings.MappingConfig, logger *slog.Logger, recorder metrics.Recorder, ) pluginapi.Plugin
NewWindsurfNext creates a Windsurf-Next plugin instance.
func ParseKeybinding ¶ added in v0.6.0
func ParseKeybinding(keybind string, plat platform.Platform) (*keybinding.Keybinding, error)
ParseKeybinding parses a VSCode keybinding string into a Keybinding struct. The plat parameter specifies the platform context for parsing modifier keys. If plat is empty, it defaults to the current runtime platform.
Types ¶
This section is empty.