[PR #13765] Introduce ExpandSelectionToWord action #29764

Closed
opened 2026-01-31 09:36:46 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/13765

State: closed
Merged: Yes


Summary of the Pull Request

Introduces a new action expandSelectionToWord() which expands the beginning and end of the selection to encompass the word(s) it's on. This was implemented as a conditional keybinding where the key chord is passed through to the terminal if no selection is active (similar to copy()).
It is not bound to anything by default.

PR Checklist

Validation Steps Performed

  • Scenario in #8274:
    • search for some text in the find dialog
    • ESC to close the dialog
    • execute expandSelectionToWord()
    • the new selection encompasses the whole word
  • mark mode
    • move onto a word
    • execute expandSelectionToWord()
  • mouse selection (same as above)
  • select a portion of two words --> new selection fully encompasses both words
**Original Pull Request:** https://github.com/microsoft/terminal/pull/13765 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request Introduces a new action `expandSelectionToWord()` which expands the beginning and end of the selection to encompass the word(s) it's on. This was implemented as a conditional keybinding where the key chord is passed through to the terminal if no selection is active (similar to `copy()`). It is not bound to anything by default. ## PR Checklist * [x] Closes #8274 * [x] Schema updated. ## Validation Steps Performed - Scenario in #8274: - search for some text in the find dialog - ESC to close the dialog - execute `expandSelectionToWord()` - the new selection encompasses the whole word - mark mode - move onto a word - execute `expandSelectionToWord()` - mouse selection (same as above) - select a portion of two words --> new selection fully encompasses both words
claunia added the pull-request label 2026-01-31 09:36:46 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#29764