mirror of
https://github.com/taigrr/teaqlite.git
synced 2026-04-02 04:59:03 -07:00
jerry-rig a help toggle cmd
This commit is contained in:
@@ -2,7 +2,10 @@ package app
|
||||
|
||||
import "github.com/charmbracelet/bubbles/key"
|
||||
|
||||
// TableListKeyMap defines keybindings for the table list view
|
||||
// TableListKeyMap defines keybindings for the table list view.
|
||||
// Navigation follows vim-like patterns:
|
||||
// - gg: go to start (requires two 'g' presses)
|
||||
// - G: go to end (single 'G' press)
|
||||
type TableListKeyMap struct {
|
||||
Up key.Binding
|
||||
Down key.Binding
|
||||
@@ -69,7 +72,7 @@ func DefaultTableListKeyMap() TableListKeyMap {
|
||||
|
||||
// ShortHelp returns keybindings to be shown in the mini help view
|
||||
func (k TableListKeyMap) ShortHelp() []key.Binding {
|
||||
return []key.Binding{k.Up, k.Down, k.Enter, k.Search}
|
||||
return []key.Binding{k.Up, k.Down, k.Enter, k.GoToStart, k.GoToEnd, k.Search}
|
||||
}
|
||||
|
||||
// FullHelp returns keybindings for the expanded help view
|
||||
|
||||
Reference in New Issue
Block a user