diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-13 07:23:24 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-13 07:23:24 +0200 |
| commit | a83156ac084fdaf97e6cefc76ea3ddfd3f6a993a (patch) | |
| tree | 6f586234e616d57ed0a938c98fa3b0aef9e20f6b /internal/tui/common | |
| parent | c9d22e32dc9d8d0447beb4ffa78f47a03d0cddc4 (diff) | |
feat: add tui parquet recording controls
Diffstat (limited to 'internal/tui/common')
| -rw-r--r-- | internal/tui/common/keys.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/tui/common/keys.go b/internal/tui/common/keys.go index bdfa5e2..1dd2833 100644 --- a/internal/tui/common/keys.go +++ b/internal/tui/common/keys.go @@ -30,6 +30,7 @@ type KeyMap struct { Filter key.Binding FilterUndo key.Binding Export key.Binding + Record key.Binding Quit key.Binding Enter key.Binding Esc key.Binding @@ -66,6 +67,7 @@ func DefaultKeyMap() KeyMap { Filter: keyBinding("filter", "f"), FilterUndo: keyBinding("undo filter", "F"), Export: keyBinding("stream export", "e"), + Record: keyBinding("parquet rec", "R"), Quit: keyBinding("quit", "q", "ctrl+c"), Enter: keyBinding("select", "enter"), Esc: keyBinding("back", "esc"), @@ -109,6 +111,7 @@ func (k KeyMap) DashboardStatusHelpSections() []HelpSection { k.SelectPID, k.SelectTID, k.Probes, + k.Record, k.Refresh, k.Quit, } @@ -149,7 +152,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.DirGroup, k.SelectPID, k.SelectTID, k.Probes, k.Refresh, k.Quit) + controls = append(controls, k.DirGroup, k.SelectPID, k.SelectTID, k.Probes, k.Record, k.Refresh, k.Quit) controls = append(controls, k.Visualize, k.Metric, k.Sort, k.ReverseSort, k.Filter, k.FilterUndo) return [][]key.Binding{ |
