feat: add command to switch mode #1120
Open
+1,112
−1,022
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Feature: add command to switch mode
When I'm developing with roo-code, I often need to switch between different modes. Clicking the select box is somewhat inconvenient for me, and I hope there could be a better way to help me switch modes. When I learned that the new version of Cursor added a
Cmd + .
shortcut to switch modes, I was excited and wanted to add this functionality to roo-code as well.Type of change
How Has This Been Tested?
Manual testing
Checklist:
Additional context
roo-code-add-cmd-switch-mode.mov
Related Issues
Reviewers
Important
Add
cycleModes
command and keyboard shortcut to switch modes in Roo Code, integrating it with theChatView
component.cycleModes
command inpackage.json
to switch modes.cycleModes
command insrc/commands/mode-switching.ts
.cycleModes
inpackage.json
.src/extension.ts
.mode
messages inwebview-ui/src/App.tsx
to switch to chat tab and callswitchMode
.switchMode
method toChatView
inwebview-ui/src/components/chat/ChatView.tsx
to update mode and send message to VSCode.This description was created by
for 867d5e0. It will automatically update as commits are pushed.