ZIm/assets
chico ferreira 5c88e9c66b
terminal: Expose selection in context and add keep_selection_on_copy setting (#33491)
Closes #21262

Introduces a new setting `keep_selection_on_copy`, which controls
whether the current text selection is preserved after copying in the
terminal. The default behavior remains the same (`true`), but setting it
to `false` will clear the selection after the copy operation, matching
VSCode's behavior.

Additionally, the terminal context now exposes a `selection` flag
whenever text is selected.

This allows users to match VSCode and other terminal's smart copy
behavior.

Release Notes:

- Expose `selection` to terminal context when there is text selected in
the terminal
- Add `keep_selection_on_copy` terminal setting. Can be set to false to
clear the text selection when copying text.

**VSCode Behavior Example:**

**settings.json:**
```json
  "terminal": {
    "keep_selection_on_copy": false
  },
```
**keymap.json:**
```json
  {
    "context": "Terminal && selection",
    "bindings": {
      "ctrl-c": "terminal::Copy"
    }
  }
```
2025-07-03 09:37:27 +03:00
..
fonts Fix font selection on macOS (#13615) 2024-06-27 17:02:45 -06:00
icons debugger: Add UI for tweaking breakpoint properties directly from breakpoint list (#33097) 2025-06-28 23:41:44 +02:00
images debugger: Add onboarding modal (#32961) 2025-06-18 18:44:02 +00:00
keymaps Switch to ctrl-f11 for debugger::StepInto on macOS (#33799) 2025-07-02 16:36:25 -04:00
prompts Include full abs paths of worktrees in system prompt (#32725) 2025-06-15 15:45:26 +02:00
settings terminal: Expose selection in context and add keep_selection_on_copy setting (#33491) 2025-07-03 09:37:27 +03:00
sounds agent: Add sound notification when done generating (#31472) 2025-05-26 21:20:41 -03:00
themes One Light Theme: Change constant color (#33166) 2025-06-21 12:43:02 -04:00