Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CommonKeys = keyMap{ MenuNext: key.NewBinding(key.WithKeys("[", "]"), key.WithHelp("[/]", "Change panel")), Quit: key.NewBinding(key.WithKeys("ctrl+c"), key.WithHelp("ctrl+c", "Quit")), }
View Source
var LogFile *os.File
View Source
var SuggestionInputKeyMap = SuggestionKeyMap{ AcceptSuggestion: key.NewBinding(key.WithKeys("tab"), key.WithHelp("tab", "Accept suggestion")), NextSuggestion: key.NewBinding(key.WithKeys("down", "ctrl+n"), key.WithHelp("down/ctrl+n", "Next suggestion")), PrevSuggestion: key.NewBinding(key.WithKeys("up", "ctrl+p"), key.WithHelp("up/ctrl+p", "Previous suggestion")), }
View Source
var UserDir string
Functions ¶
Types ¶
type SuggestionKeyMap ¶
type SuggestionKeyMap struct { AcceptSuggestion key.Binding NextSuggestion key.Binding PrevSuggestion key.Binding }
func (SuggestionKeyMap) FullHelp ¶
func (k SuggestionKeyMap) FullHelp() [][]key.Binding
FullHelp returns keybindings for the expanded help view. It's part of the key.Map interface.
func (SuggestionKeyMap) ShortHelp ¶
func (k SuggestionKeyMap) ShortHelp() []key.Binding
Click to show internal directories.
Click to hide internal directories.