feat(tui): shift+tab to cycle modes backward (#1049)

This commit is contained in:
Adi Yeroslav
2025-07-16 15:43:48 +03:00
committed by GitHub
parent add81b9739
commit 57d1a60efc
6 changed files with 35 additions and 6 deletions

View File

@@ -810,6 +810,10 @@ func (a appModel) executeCommand(command commands.Command) (tea.Model, tea.Cmd)
updated, cmd := a.app.SwitchMode()
a.app = updated
cmds = append(cmds, cmd)
case commands.SwitchModeReverseCommand:
updated, cmd := a.app.SwitchModeReverse()
a.app = updated
cmds = append(cmds, cmd)
case commands.EditorOpenCommand:
if a.app.IsBusy() {
// status.Warn("Agent is working, please wait...")