Documentation
¶
Overview ¶
Package shortcuts is the keyboard shortcuts view: a scrollable box over the grid listing every key by what it does, in two columns when the screen is wide enough. The rows come from the host, which builds them from the key bindings and the command registry. It knows the UI only through Host.
Index ¶
Constants ¶
View Source
const ID = "shortcuts"
ID identifies the view's box in mouse events.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Host ¶
type Host interface {
Theme() *theme.Theme
Size() (width, height int)
// Close closes the open overlay.
Close()
// Shortcuts are the rows to list, in order.
Shortcuts() []Row
}
Host is what the shortcuts view needs of the UI.
Click to show internal directories.
Click to hide internal directories.