keys

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppListKeyBinding = list.KeyMap{

	CursorUp:    key.NewBinding(key.WithKeys("k"), key.WithHelp("k", "up")),
	CursorDown:  key.NewBinding(key.WithKeys("j"), key.WithHelp("j", "down")),
	NextPage:    key.NewBinding(key.WithDisabled()),
	PrevPage:    key.NewBinding(key.WithDisabled()),
	GoToStart:   key.NewBinding(key.WithDisabled()),
	GoToEnd:     key.NewBinding(key.WithDisabled()),
	Filter:      key.NewBinding(key.WithKeys("/"), key.WithHelp("/", "search")),
	ClearFilter: key.NewBinding(key.WithKeys("esc"), key.WithHelp("esc", "clear")),

	CancelWhileFiltering: key.NewBinding(key.WithKeys("esc"), key.WithHelp("esc", "cancel")),
	AcceptWhileFiltering: key.NewBinding(key.WithKeys("enter"), key.WithHelp("enter", "search")),

	ShowFullHelp:  key.NewBinding(key.WithDisabled()),
	CloseFullHelp: key.NewBinding(key.WithDisabled()),

	Quit: key.NewBinding(key.WithKeys("ctrl+c")),

	ForceQuit: key.NewBinding(key.WithKeys("ctrl+c")),
}

AppListKeyBinding are the keys bound to the appList tui widget

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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