keybinding

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FormatOption

type FormatOption struct {
	Platform  platform.Platform
	Separator string
}

type Keybinding

type Keybinding struct {
	KeyChords []keychord.KeyChord
}

func NewKeybinding

func NewKeybinding(keybinding string, opt ParseOption) (Keybinding, error)

func (Keybinding) String

func (kb Keybinding) String(opt FormatOption) string

String returns the string representation of the keybinding. like "ctrl+k ctrl+s"

type ParseOption

type ParseOption struct {
	Platform  platform.Platform
	Separator string
}

Jump to

Keyboard shortcuts

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