Documentation
¶
Overview ¶
Package keymap provides global key bindings and helpers for building keymaps.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Quit = key.NewBinding( key.WithKeys("ctrl+c"), key.WithHelp("ctrl+c", "quit"), ) Exit = key.NewBinding( key.WithKeys("esc"), key.WithHelp("", ""), ) Tab = key.NewBinding( key.WithKeys("tab"), key.WithHelp("tab", "switch focus"), ) Send = key.NewBinding( key.WithKeys("enter"), key.WithHelp("enter", "send"), ) Newline = key.NewBinding( key.WithKeys("shift+enter", "alt+enter", "ctrl+j"), key.WithHelp("shift+enter", "newline"), ) Details = key.NewBinding( key.WithKeys("ctrl+d"), key.WithHelp("ctrl+d", "details"), ) Palette = key.NewBinding( key.WithKeys("/"), key.WithHelp("/", "commands"), ) // Drawer bindings (shown when the statusbar drawer is open). NextTab = key.NewBinding( key.WithKeys("tab"), key.WithHelp("tab", "next tab"), ) CloseDrawer = key.NewBinding( key.WithKeys("esc"), key.WithHelp("esc", "close"), ) // Global is shown in the keybar across all screens. Global = []key.Binding{Quit} )
Common key bindings.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.