diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-24 21:52:33 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-24 21:52:33 +0200 |
| commit | cf65e3f93e0565dda8f124b21b2c44b3a3ecaff5 (patch) | |
| tree | 09197d5afa42d7308d32d62c35dfe2fd5b9cde13 /internal/tui/common | |
| parent | 84d523fd02cba38cfe90118975f345b989beaae1 (diff) | |
stability: remove unlink attach sleep and tighten svg/tui helpers
Diffstat (limited to 'internal/tui/common')
| -rw-r--r-- | internal/tui/common/keys.go | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/internal/tui/common/keys.go b/internal/tui/common/keys.go index 1111def..805a74a 100644 --- a/internal/tui/common/keys.go +++ b/internal/tui/common/keys.go @@ -65,10 +65,10 @@ func (k KeyMap) DashboardFullHelp() [][]key.Binding { {k.One, k.Two, k.Three, k.Four, k.Five, k.Six}, controls, { - key.NewBinding(key.WithKeys("left/right"), key.WithHelp("left/right", "tab")), - key.NewBinding(key.WithKeys("h/l"), key.WithHelp("h/l", "tab")), - key.NewBinding(key.WithKeys("j/k"), key.WithHelp("j/k", "scroll")), - key.NewBinding(key.WithKeys("up/down"), key.WithHelp("up/down", "scroll")), + helpTextBinding("left/right", "tab"), + helpTextBinding("h/l", "tab"), + helpTextBinding("j/k", "scroll"), + helpTextBinding("up/down", "scroll"), }, } } @@ -77,3 +77,7 @@ func (k KeyMap) DashboardFullHelp() [][]key.Binding { func (k KeyMap) PickerShortHelp() []key.Binding { return []key.Binding{k.Enter, k.Refresh, k.Esc} } + +func helpTextBinding(keyText, desc string) key.Binding { + return key.NewBinding(key.WithHelp(keyText, desc)) +} |
