diff options
Diffstat (limited to 'internal/tui/commands.go')
-rw-r--r-- | internal/tui/commands.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/tui/commands.go b/internal/tui/commands.go index 040df4b..aa5cc79 100644 --- a/internal/tui/commands.go +++ b/internal/tui/commands.go @@ -11,6 +11,7 @@ import ( type ( navigationMsg struct{ Forward bool } selectionMsg struct{ Forward bool } + selectionToEnd struct{ Top bool } drillDownMsg struct{} drillUpMsg struct{} modalClosed struct{} @@ -77,6 +78,14 @@ func changeSelection(forward bool) tea.Cmd { return func() tea.Msg { return selectionMsg{forward} } } +func changeSelectionToTop() tea.Cmd { + return func() tea.Msg { return selectionToEnd{true} } +} + +func changeSelectionToBottom() tea.Cmd { + return func() tea.Msg { return selectionToEnd{false} } +} + func closeModal() tea.Cmd { return func() tea.Msg { return modalClosed{} } } |