From d6781f3e5b431057c23b2deaa943f273699e37f5 Mon Sep 17 00:00:00 2001 From: T Date: Wed, 13 Aug 2025 14:47:24 -0600 Subject: client and project modal field suggestions, ctrl+n to accept --- internal/tui/commands.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'internal/tui/commands.go') 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{} } } -- cgit v1.2.3