summaryrefslogtreecommitdiff
path: root/internal/tui/commands.go
diff options
context:
space:
mode:
authorT <t@tjp.lol>2025-08-06 16:00:05 -0600
committerT <t@tjp.lol>2025-08-06 16:26:00 -0600
commitc53e8c4e41aa88566b101431bcd104ebf7b34312 (patch)
tree614e1c911fae328cfdb1a35050bf94658d9253f8 /internal/tui/commands.go
parent65e2ed65775d64afbc6065a3b4ac1069020093ca (diff)
TUI fixes, and WIP modal dialog rendering
Diffstat (limited to 'internal/tui/commands.go')
-rw-r--r--internal/tui/commands.go13
1 files changed, 9 insertions, 4 deletions
diff --git a/internal/tui/commands.go b/internal/tui/commands.go
index c54df29..4a19551 100644
--- a/internal/tui/commands.go
+++ b/internal/tui/commands.go
@@ -9,10 +9,11 @@ import (
)
type (
- navigationMsg struct{ Forward bool }
- selectionMsg struct{ Forward bool }
- drillDownMsg struct{}
- drillUpMsg struct{}
+ navigationMsg struct{ Forward bool }
+ selectionMsg struct{ Forward bool }
+ drillDownMsg struct{}
+ drillUpMsg struct{}
+ searchActivated struct{}
)
func navigate(forward bool) tea.Cmd {
@@ -63,3 +64,7 @@ func backToHistorySummary() tea.Cmd {
func changeSelection(forward bool) tea.Cmd {
return func() tea.Msg { return selectionMsg{forward} }
}
+
+func activateSearch() tea.Cmd {
+ return func() tea.Msg { return searchActivated{} }
+}