diff options
author | T <t@tjp.lol> | 2025-08-13 14:47:24 -0600 |
---|---|---|
committer | T <t@tjp.lol> | 2025-08-13 14:47:55 -0600 |
commit | d6781f3e5b431057c23b2deaa943f273699e37f5 (patch) | |
tree | 269ef61bc44750881068ebd94d643a9b3a57c20c /internal/tui/commands.go | |
parent | 389b72e55b04ccfc02b04eb81cb8f7bb7a5c8b59 (diff) |
client and project modal field suggestions, ctrl+n to accept
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{} } } |