keychord

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyChord

type KeyChord struct {
	*keymapv1.KeyChord
}

func NewKeyChord

func NewKeyChord(protoKeyChord *keymapv1.KeyChord) *KeyChord

func Parse

func Parse(keybind string, modifierSeparator string) (*KeyChord, error)

Parse takes a vscode-like keybind string like "ctrl+shift+f" or "ctrl-shift-f" and converts it into a structured KeyChord proto message.

func (*KeyChord) Format

func (kc *KeyChord) Format(p platform.Platform) ([]string, error)

Format takes a structured KeyChord proto message and returns its canonical string representation, e.g., "ctrl+shift+f".

Jump to

Keyboard shortcuts

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