Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Common = common{ Plan: key.NewBinding( key.WithKeys("p"), key.WithHelp("p", "plan"), ), PlanDestroy: key.NewBinding( key.WithKeys("P"), key.WithHelp("P", "plan destroy"), ), Apply: key.NewBinding( key.WithKeys("a"), key.WithHelp("a", "apply"), ), Destroy: key.NewBinding( key.WithKeys("d"), key.WithHelp("d", "destroy"), ), Cancel: key.NewBinding( key.WithKeys("c"), key.WithHelp("c", "cancel"), ), Delete: key.NewBinding( key.WithKeys("D"), key.WithHelp("D", "delete"), ), State: key.NewBinding( key.WithKeys("s"), key.WithHelp("s", "state"), ), Retry: key.NewBinding( key.WithKeys("r"), key.WithHelp("r", "retry"), ), Reload: key.NewBinding( key.WithKeys("ctrl+r"), key.WithHelp("ctrl+r", "reload"), ), Module: key.NewBinding( key.WithKeys("m"), key.WithHelp("m", "module"), ), Workspace: key.NewBinding( key.WithKeys("w"), key.WithHelp("w", "workspace"), ), Edit: key.NewBinding( key.WithKeys("e"), key.WithHelp("e", "edit"), ), Init: key.NewBinding( key.WithKeys("i"), key.WithHelp("i", "init"), ), Validate: key.NewBinding( key.WithKeys("v"), key.WithHelp("v", "validate"), ), Format: key.NewBinding( key.WithKeys("f"), key.WithHelp("f", "format"), ), }
Keys shared by several models.
View Source
var Filter = filter{ Blur: key.NewBinding( key.WithKeys("enter"), key.WithHelp("enter", "exit filter"), ), Close: key.NewBinding( key.WithKeys("esc"), key.WithHelp("esc", "clear filter"), ), }
Filter is a key map of keys available in filter mode.
View Source
var Global = global{ Modules: key.NewBinding( key.WithKeys("m"), key.WithHelp("m", "modules"), ), Workspaces: key.NewBinding( key.WithKeys("w"), key.WithHelp("w", "workspaces"), ), Tasks: key.NewBinding( key.WithKeys("t"), key.WithHelp("t", "tasks"), ), TaskGroups: key.NewBinding( key.WithKeys("T"), key.WithHelp("T", "taskgroups"), ), Logs: key.NewBinding( key.WithKeys("l"), key.WithHelp("l", "logs"), ), Back: key.NewBinding( key.WithKeys("esc"), key.WithHelp("esc", "back"), ), Enter: key.NewBinding( key.WithKeys("enter"), key.WithHelp("enter", "view"), ), Select: key.NewBinding( key.WithKeys(" "), key.WithHelp("<space>", "select"), ), SelectAll: key.NewBinding( key.WithKeys("ctrl+a"), key.WithHelp("ctrl+a", "select all"), ), SelectClear: key.NewBinding( key.WithKeys(`ctrl+\`), key.WithHelp(`ctrl+\`, "clear selection"), ), SelectRange: key.NewBinding( key.WithKeys(`ctrl+@`), key.WithHelp(`ctrl+<space>`, "select range"), ), Filter: key.NewBinding( key.WithKeys("/"), key.WithHelp(`/`, "filter"), ), Autoscroll: key.NewBinding( key.WithKeys("ctrl+s"), key.WithHelp("ctrl+s", "toggle autoscroll"), ), Quit: key.NewBinding( key.WithKeys("ctrl+c"), key.WithHelp("ctrl+c", "exit"), ), Help: key.NewBinding( key.WithKeys("?"), key.WithHelp("?", "close help"), ), }
View Source
key.NewBinding( key.WithKeys("up", "k"), key.WithHelp("↑/k", "up"), ), LineDown: key.NewBinding( key.WithKeys("down", "j"), key.WithHelp("↓/j", "down"), ), PageUp: key.NewBinding( key.WithKeys("b", "pgup"), key.WithHelp("b/pgup", "page up"), ), PageDown: key.NewBinding( key.WithKeys("f", "pgdown"), key.WithHelp("f/pgdn", "page down"), ), GotoTop: key.NewBinding( key.WithKeys("home", "g"), key.WithHelp("g/home", "go to start"), ), GotoBottom: key.NewBinding( key.WithKeys("end", "G"), key.WithHelp("G/end", "go to end"), ), }LineUp:
Navigation returns key bindings for navigation.
Functions ¶
func KeyMapToSlice ¶
KeyMapToSlice takes a struct of fields of type key.Binding and returns it as a slice instead.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.