summaryrefslogtreecommitdiff
path: root/internal/tui/common/keys.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-25 10:17:40 +0200
committerPaul Buetow <paul@buetow.org>2026-02-25 10:17:40 +0200
commitfa93934f341c7356b63daaf0c27cbdbb6e22fad7 (patch)
treed1c61ab90ecbb6a7b141ed092221313ac4e34309 /internal/tui/common/keys.go
parent7ca1eeaa98a58471a2214a2274d20b71206af2a1 (diff)
Add dir-group key binding to shared TUI keymap
Diffstat (limited to 'internal/tui/common/keys.go')
-rw-r--r--internal/tui/common/keys.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/tui/common/keys.go b/internal/tui/common/keys.go
index 7b70d5a..92d946c 100644
--- a/internal/tui/common/keys.go
+++ b/internal/tui/common/keys.go
@@ -13,6 +13,7 @@ type KeyMap struct {
Five key.Binding
Six key.Binding
Seven key.Binding
+ DirGroup key.Binding
Export key.Binding
Quit key.Binding
Help key.Binding
@@ -36,6 +37,7 @@ func DefaultKeyMap() KeyMap {
Five: key.NewBinding(key.WithKeys("5"), key.WithHelp("5", "lat+gaps")),
Six: key.NewBinding(key.WithKeys("6"), key.WithHelp("6", "stream")),
Seven: key.NewBinding(key.WithKeys("7"), key.WithHelp("7", "stream")),
+ DirGroup: key.NewBinding(key.WithKeys("d"), key.WithHelp("d", "dir group")),
Export: key.NewBinding(key.WithKeys("e"), key.WithHelp("e", "export")),
Quit: key.NewBinding(key.WithKeys("q", "ctrl+c"), key.WithHelp("q", "quit")),
Help: key.NewBinding(key.WithKeys("?"), key.WithHelp("?", "help")),
@@ -61,7 +63,7 @@ func (k KeyMap) DashboardFullHelp() [][]key.Binding {
if help := k.Export.Help(); help.Key != "" || help.Desc != "" {
controls = append(controls, k.Export)
}
- controls = append(controls, k.Refresh, k.Help, k.Quit)
+ controls = append(controls, k.DirGroup, k.Refresh, k.Help, k.Quit)
return [][]key.Binding{
{k.One, k.Two, k.Three, k.Four, k.Five, k.Six},