From 70dcaa2f10591ae76d908c93980babe205e4a884 Mon Sep 17 00:00:00 2001 From: T Date: Tue, 19 Aug 2025 12:12:54 -0600 Subject: [f] key on projects box to filter the history view to the selected client or project --- internal/tui/keys.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'internal/tui/keys.go') 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" }, -- cgit v1.2.3