[PR #1049] [MERGED] feat(tui): shift+tab to cycle modes backward #9793

Closed
opened 2026-02-16 18:14:10 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1049
Author: @AdiY00
Created: 7/16/2025
Status: Merged
Merged: 7/16/2025
Merged by: @adamdotdevin

Base: devHead: feat/prev-mode


📝 Commits (2)

  • 460f3bb feat: shift+tab to cycle modes backward
  • d166a31 rollback to switch_mode command for backward compatibility

📊 Changes

6 files changed (+35 additions, -6 deletions)

View changed files

📝 packages/opencode/src/config/config.ts (+2 -1)
packages/tui/cmd/opencode/opencode (+0 -0)
📝 packages/tui/internal/app/app.go (+19 -4)
📝 packages/tui/internal/commands/command.go (+7 -1)
📝 packages/tui/internal/tui/tui.go (+4 -0)
📝 packages/tui/sdk/config.go (+3 -0)

📄 Description

I've renamed switch_mode to next_mode and added previous_mode with a shift+tab keybind.

Feels intuitive and saves some time when you have more than two modes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/1049 **Author:** [@AdiY00](https://github.com/AdiY00) **Created:** 7/16/2025 **Status:** ✅ Merged **Merged:** 7/16/2025 **Merged by:** [@adamdotdevin](https://github.com/adamdotdevin) **Base:** `dev` ← **Head:** `feat/prev-mode` --- ### 📝 Commits (2) - [`460f3bb`](https://github.com/anomalyco/opencode/commit/460f3bbc3ec56b87f21200d8b8944a07fb69e2ee) feat: shift+tab to cycle modes backward - [`d166a31`](https://github.com/anomalyco/opencode/commit/d166a3186529e993d98de14daac31deef3cc3008) rollback to switch_mode command for backward compatibility ### 📊 Changes **6 files changed** (+35 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/config/config.ts` (+2 -1) ➕ `packages/tui/cmd/opencode/opencode` (+0 -0) 📝 `packages/tui/internal/app/app.go` (+19 -4) 📝 `packages/tui/internal/commands/command.go` (+7 -1) 📝 `packages/tui/internal/tui/tui.go` (+4 -0) 📝 `packages/tui/sdk/config.go` (+3 -0) </details> ### 📄 Description I've renamed `switch_mode` to `next_mode` and added `previous_mode` with a shift+tab keybind. Feels intuitive and saves some time when you have more than two modes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:10 -05:00
yindo closed this issue 2026-02-16 18:14:10 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9793