diff options
Diffstat (limited to 'internal/tui/commands.go')
-rw-r--r-- | internal/tui/commands.go | 13 |
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{} } +} |