summaryrefslogtreecommitdiff
path: root/internal/tui/keys.go
diff options
context:
space:
mode:
authorT <t@tjp.lol>2025-08-19 12:12:54 -0600
committerT <t@tjp.lol>2025-08-19 12:13:26 -0600
commit70dcaa2f10591ae76d908c93980babe205e4a884 (patch)
tree8b59d45f723c84d15b69235ffcf8268b89779616 /internal/tui/keys.go
parent3cd97f651e02205d0d6f554a83da1ff7efe73609 (diff)
[f] key on projects box to filter the history view to the selected client or project
Diffstat (limited to 'internal/tui/keys.go')
-rw-r--r--internal/tui/keys.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/tui/keys.go b/internal/tui/keys.go
index 5cbefa4..c4ccad3 100644
--- a/internal/tui/keys.go
+++ b/internal/tui/keys.go
@@ -118,6 +118,16 @@ var Bindings map[KeyBindingScope]map[string]KeyBinding = map[KeyBindingScope]map
},
Result: func(*AppModel) tea.Cmd { return editClientOrProject() },
},
+ "f": KeyBinding{
+ Key: "f",
+ Description: func(m AppModel) string {
+ if m.projectsBox.selectedProject != nil {
+ return "Filter to Project"
+ }
+ return "Filter to Client"
+ },
+ Result: func(*AppModel) tea.Cmd { return filterHistoryFromProjectBox() },
+ },
"down": KeyBinding{
Key: "down",
Description: func(AppModel) string { return "Down" },