Skip to content

Conversation

@roomote
Copy link
Contributor

@roomote roomote bot commented Jul 21, 2025

Summary

This PR adds a keyboard shortcut (Ctrl+Shift+E / Cmd+Shift+E on Mac) to trigger the enhance prompt functionality, allowing users to enhance their prompts without manually clicking the button.

Changes

  • Added new VS Code command roo-cline.enhancePrompt in package.json
  • Configured keyboard shortcut keybinding for the command
  • Registered command handler in registerCommands.ts that sends a message to the webview
  • Added triggerEnhancePrompt message type to ExtensionMessage interface
  • Updated ChatTextArea component to handle the keyboard shortcut trigger message

Testing

  1. Open the Roo Code extension
  2. Type a prompt in the chat input
  3. Press Ctrl+Shift+E (or Cmd+Shift+E on Mac)
  4. The enhance prompt functionality should be triggered, same as clicking the wand button

Benefits

  • Improves user productivity by providing quick keyboard access to prompt enhancement
  • Maintains consistency with VS Code's keyboard-driven workflow
  • No breaking changes - the button functionality remains unchanged

Important

Adds a keyboard shortcut for the enhance prompt functionality, allowing quick access via Ctrl+Shift+E / Cmd+Shift+E on Mac.

  • Behavior:
    • Adds roo-cline.enhancePrompt command in package.json with a keyboard shortcut (Ctrl+Shift+E / Cmd+Shift+E on Mac).
    • Registers enhancePrompt command handler in registerCommands.ts to send triggerEnhancePrompt message to webview.
    • Updates ChatTextArea.tsx to handle triggerEnhancePrompt message and execute handleEnhancePrompt().
  • Interfaces:
    • Adds triggerEnhancePrompt to ExtensionMessage type in ExtensionMessage.ts.
  • Misc:
    • Updates localization strings in package.nls.json for command.enhancePrompt.title.

This description was created by Ellipsis for 1169398. You can customize this summary. It will automatically update as commits are pushed.

- Added new command "roo-cline.enhancePrompt" with Ctrl+Shift+E (Cmd+Shift+E on Mac) keybinding
- Registered command handler in registerCommands.ts to send message to webview
- Added "triggerEnhancePrompt" message type to ExtensionMessage interface
- Updated ChatTextArea component to handle keyboard shortcut trigger
- Allows users to enhance prompts without clicking the button manually
@roomote roomote bot requested review from cte, jr and mrubens as code owners July 21, 2025 15:24
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request labels Jul 21, 2025
@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Jul 21, 2025
@github-project-automation github-project-automation bot moved this from Triage to Done in Roo Code Roadmap Jul 21, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Jul 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. size:L This PR changes 100-499 lines, ignoring generated files.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants