summaryrefslogtreecommitdiff
path: root/internal/tui/commands.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/commands.go
parent3cd97f651e02205d0d6f554a83da1ff7efe73609 (diff)
[f] key on projects box to filter the history view to the selected client or project
Diffstat (limited to 'internal/tui/commands.go')
-rw-r--r--internal/tui/commands.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/tui/commands.go b/internal/tui/commands.go
index 66a0c4d..4fdd9e0 100644
--- a/internal/tui/commands.go
+++ b/internal/tui/commands.go
@@ -23,6 +23,7 @@ type (
openTimeEntryEditor struct{}
openContractorEditor struct{}
openClientOrProjectEditor struct{}
+ filterHistoryByProjectBox struct{}
openModalUnchanged struct{}
openDeleteConfirmation struct{}
recheckBounds struct{}
@@ -110,6 +111,10 @@ func editClientOrProject() tea.Cmd {
return func() tea.Msg { return openClientOrProjectEditor{} }
}
+func filterHistoryFromProjectBox() tea.Cmd {
+ return func() tea.Msg { return filterHistoryByProjectBox{} }
+}
+
func reOpenModal() tea.Cmd {
return func() tea.Msg { return openModalUnchanged{} }
}