Documentation ¶
Index ¶
Constants ¶
View Source
const ( ScaffoldButtonName = "Scaffold" ViewInBrowserButtonName = "View Source in Browser" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Button ¶
type Button struct {
// contains filtered or unexported fields
}
func NewButton ¶
func NewButton(name string, action ButtonActionFunc) *Button
type KeyMap ¶
type KeyMap struct { viewport.KeyMap Navigation key.Binding // Select button Choose key.Binding // Run Scaffold command Scaffold key.Binding // Help toggle keybindings. Help key.Binding // The quit keybinding. This won't be caught when filtering. Quit key.Binding // The quit-no-matter-what keybinding. This will be caught when filtering. ForceQuit key.Binding // contains filtered or unexported fields }
KeyMap defines a set of keybindings. To work for help it must satisfy key.Map. It could also very easily be a map[string]key.Binding.
func (KeyMap) FullHelp ¶
FullHelp returns keybindings for the expanded help view. It's part of the key.Map interface.
Click to show internal directories.
Click to hide internal directories.