opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat(app): add tab cycling for modes in the prompt input

Open albingroen opened this issue 4 days ago • 1 comments

Closes #7224

What does this PR do?

  • This PR adds support for cycling through your different agents/modes in the prompt input using tab and shift-tab. I know this maybe isn't the absolute best solution. For example, what if you wanna indent pasted code or something. But, maybe we can think about that later. This could be fine for now, so you don't have to reach down to the select menu every time you wanna change the agent?

How did you verify your code works?

I tried hitting Tab and Shift-Tab in the prompt input, and it works as expected.

Demo

https://github.com/user-attachments/assets/8ebcbd50-b99c-408b-a3f2-a5154eeae0c7

albingroen avatar Jan 10 '26 20:01 albingroen