Skip to content

Commit 9481e45

Browse files
committed
docs: update v3.12.0 release notes with profile-specific diff settings and improved keyboard shortcut descriptions
1 parent 67275a2 commit 9481e45

File tree

2 files changed

+32
-26
lines changed

2 files changed

+32
-26
lines changed

docs/features/keyboard-shortcuts.md

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@ The Roo Code interface supports keyboard shortcuts to streamline your workflow a
88

99
## Available Keyboard Commands
1010

11-
Roo Code offers several keyboard commands to enhance your workflow. This page focuses on the `roo.acceptInput` command, but here's a quick reference to all keyboard commands:
11+
Roo Code offers keyboard commands to enhance your workflow. This page focuses on the `roo.acceptInput` command, but here's a quick reference to all keyboard commands:
1212

1313
| Command | Description | Default Shortcut |
1414
|---------|-------------|-----------------|
1515
| `roo.acceptInput` | Submit text or accept the primary suggestion | None (configurable) |
1616
| `roo.focus` | Focus the Roo input box | None (configurable) |
17-
| `roo.openChat` | Open Roo sidebar | Ctrl+Shift+R (⌘+Shift+R on Mac) |
1817

1918
### Key Benefits of Keyboard Commands
2019

@@ -29,9 +28,10 @@ The `roo.acceptInput` command lets you submit text or accept suggestions with ke
2928

3029
### What It Does
3130

32-
When triggered, the command:
33-
- Clicks the primary (first) button when suggestion buttons are visible (see [Suggested Responses](/features/suggested-responses))
34-
- Submits your current text input when in regular text input mode
31+
The `roo.acceptInput` command is a general-purpose input submission command. When triggered, it:
32+
33+
- Submits your current text or image input when in the text input area (equivalent to pressing Enter)
34+
- Clicks the primary (first) button when action buttons are visible (such as confirm/cancel buttons or any other action buttons)
3535

3636
### Detailed Setup Guide
3737

@@ -45,7 +45,6 @@ When triggered, the command:
4545
6. Press your desired key combination (e.g., `Ctrl+Enter` or `Alt+Enter`)
4646
7. Press Enter to confirm
4747

48-
<img src="/img/keyboard-shortcuts/keyboard-shortcut-setup.png" alt="Setting up the roo.acceptInput keyboard shortcut in VS Code's Keyboard Shortcuts UI" width="700" />
4948

5049
#### Method 2: Editing keybindings.json directly
5150

@@ -57,7 +56,16 @@ When triggered, the command:
5756
{
5857
"key": "ctrl+enter", // or your preferred key combination
5958
"command": "roo.acceptInput",
60-
"when": "rooViewFocused"
59+
"when": "rooViewFocused" // This is a context condition that ensures the command only works when Roo is focused
60+
}
61+
```
62+
63+
You can also use a more specific condition:
64+
```json
65+
{
66+
"key": "ctrl+enter",
67+
"command": "roo.acceptInput",
68+
"when": "webviewViewFocus && webviewViewId == 'roo-cline.SidebarProvider'"
6169
}
6270
```
6371

@@ -74,10 +82,10 @@ Choose a key combination that doesn't conflict with existing VS Code shortcuts:
7482

7583
#### Quick Development Workflows
7684

77-
- **Multi-Step Code Generation**: When Roo asks clarifying questions during code generation, accept the primary suggestion without breaking your flow
78-
- **Rapid Prototyping**: Quickly move through a series of inputs when creating a prototype
79-
- **Confirmations**: Accept default confirmation options during processes like creating files, running terminal commands, or applying diffs
80-
- **Consecutive Tasks**: Chain multiple small tasks together with minimal interruption
85+
- **Text Submission**: Send messages to Roo without moving your hands from the keyboard
86+
- **Action Confirmations**: Accept operations like saving files, running commands, or applying diffs
87+
- **Multi-Step Processes**: Move quickly through steps that require confirmation or input
88+
- **Consecutive Tasks**: Chain multiple tasks together with minimal interruption
8189

8290
#### Keyboard-Centric Development
8391

@@ -109,7 +117,7 @@ Here are some complete workflow examples showing how to effectively use keyboard
109117
#### Development Workflow Example
110118

111119
1. Open VS Code and navigate to your project
112-
2. Open Roo (`Ctrl+Shift+R` or via sidebar)
120+
2. Open Roo via the sidebar
113121
3. Type your request: "Create a REST API endpoint for user registration"
114122
4. When Roo asks for framework preferences, use your `roo.acceptInput` shortcut to select the first suggestion
115123
5. Continue using the shortcut to accept code generation suggestions
@@ -131,21 +139,21 @@ Here are some complete workflow examples showing how to effectively use keyboard
131139
| Wrong suggestion selected | The command always selects the first (primary) button; use mouse if you need a different option |
132140
| Conflicts with existing shortcuts | Try a different key combination in VS Code keyboard settings |
133141
| No visual feedback when used | This is normal - the command silently activates the function without visual confirmation |
134-
| Shortcut works inconsistently | Make sure the `when: "rooViewFocused"` clause is in your keybindings.json |
142+
| Shortcut works inconsistently | Make sure the `when` clause is properly configured in your keybindings.json (either `rooViewFocused` or the webview-specific condition) |
135143

136144
### Technical Implementation
137145

138146
The `roo.acceptInput` command is implemented as follows:
139147

140148
- Command registered as `roo.acceptInput` with display title "Roo: Accept Input/Suggestion" in the command palette
141149
- When triggered, it sends an "acceptInput" message to the active Roo webview
142-
- The webview determines the appropriate action based on the current UI state
143-
- Designed to work with the `rooViewFocused` context condition
150+
- The webview determines the appropriate action based on the current UI state:
151+
- Clicks the primary action button if action buttons are visible and enabled
152+
- Sends the message if the text area is enabled and contains text/images
144153
- No default key binding - users assign their preferred shortcut
145154

146155
### Limitations
147156

148157
- Works only when the Roo interface is active
149158
- Has no effect if no inputs or suggestions are currently available
150-
- Prioritizes the primary (first) button when multiple suggestions are shown
151-
- Cannot be used to select specific suggestions (always picks the first one)
159+
- Prioritizes the primary (first) button when multiple options are shown

docs/update-notes/v3.12.0.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ This release introduces xAI provider support, improves diff editing, enhances UI
66

77
* Added xAI provider and exposed reasoning effort options for Grok on OpenRouter. (thanks Cline!)
88

9+
## Profile-Specific Diff Settings
10+
11+
* **Profile-Specific Settings**: Diff editing configuration now works on a per-profile basis, giving you greater control over how code edits work with different providers
12+
913
## Keyboard Shortcuts
1014

1115
### Keyboard Shortcuts for Input Acceptance
@@ -16,21 +20,15 @@ Added the `roo.acceptInput` command to allow users to accept input or suggestion
1620

1721
* **Keyboard-Driven Interface**: Submit text or select the primary suggestion button without mouse interaction
1822
* **Improved Accessibility**: Essential for users with mobility limitations or those who experience discomfort with mouse usage
19-
* **Vim/Neovim Compatibility**: Supports seamless transitions for developers coming from keyboard-centric environments
23+
* **Vim/Neovim Compatibility**: Supports transitions for developers coming from keyboard-centric environments
2024
* **Workflow Efficiency**: Reduces context switching between keyboard and mouse during development tasks
2125

22-
#### Technical Implementation
23-
24-
* Command registered as `roo.acceptInput` with display title "Roo: Accept Input/Suggestion"
25-
* Designed to work with the `rooViewFocused` context condition
26-
* No default key binding - users can assign their preferred shortcut
27-
* Works in conjunction with other keyboard shortcuts for a complete keyboard-driven experience
28-
2926
For detailed setup and usage instructions, see our new [Keyboard Shortcuts](/features/keyboard-shortcuts) documentation page.
3027

28+
3129
## Improvements
3230

33-
* Made diff editing configuration per-profile and improved pre-diff string normalization for better editing reliability.
31+
* Improved pre-diff string normalization for better editing reliability, especially with whitespace-sensitive languages
3432
* Made checkpoints faster and more reliable for smoother project state management.
3533
* Added a search bar to mode and profile select dropdowns for easier navigation. (thanks samhvw8!)
3634
* Added telemetry for code action usage, prompt enhancement usage, and consecutive mistake errors to improve product stability.

0 commit comments

Comments
 (0)