Feature Request: Double Click Selection #1325

Closed
opened 2026-01-30 22:22:38 +00:00 by claunia · 6 comments
Owner

Originally created by @carlos-zamora on GitHub (May 24, 2019).

Originally assigned to: @carlos-zamora on GitHub.

Summary of the new feature/enhancement

Double-clicking the text buffer creates a selection encompassing the "word".
The delimiters for what makes a "word" are defined in the settings (described below).

Dragging after a double click maintains the "beginning of the word" anchor but changes the other one.

Settings

Property Name Type Description Default Value
"selectionDelimiters" array list of characters used as delimiters [' ', '/', '\']

Use case: easily select a path or word from the selection.

Proposed technical implementation details (optional)

If possible, have XAML identify double-click. Everything else should be pretty straightforward. The TermControl will work with the Terminal to create the selection. When the event is triggered, we need to check the delimiters from the settings to decide what to select.

Originally created by @carlos-zamora on GitHub (May 24, 2019). Originally assigned to: @carlos-zamora on GitHub. # Summary of the new feature/enhancement Double-clicking the text buffer creates a selection encompassing the "word". The delimiters for what makes a "word" are defined in the settings (described below). Dragging after a double click maintains the "beginning of the word" anchor but changes the other one. **Settings** | Property Name | Type | Description | Default Value | | --------------- | ------- | ----------- | -------------- | | "selectionDelimiters" | array | list of characters used as delimiters | `[' ', '/', '\']` | Use case: easily select a path or word from the selection. <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> # Proposed technical implementation details (optional) If possible, have XAML identify double-click. Everything else should be pretty straightforward. The TermControl will work with the Terminal to create the selection. When the event is triggered, we need to check the delimiters from the settings to decide what to select. <!-- A clear and concise description of what you want to happen. -->
Author
Owner

@mdtauk commented on GitHub (May 24, 2019):

Would this support double clicking to select an entire word? Or just double click to switch to mouse selection mode?

@mdtauk commented on GitHub (May 24, 2019): Would this support double clicking to select an entire word? Or just double click to switch to mouse selection mode?
Author
Owner

@carlos-zamora commented on GitHub (May 24, 2019):

Would this support double clicking to select an entire word? Or just double click to switch to mouse selection mode?

Assuming the window is focused and you're already in mouse selection mode, it should select the entire word (inclusive).

@carlos-zamora commented on GitHub (May 24, 2019): > Would this support double clicking to select an entire word? Or just double click to switch to mouse selection mode? Assuming the window is focused and you're already in mouse selection mode, it should select the entire word (inclusive).
Author
Owner

@mikepurvis commented on GitHub (Jun 5, 2019):

Double click and drag is also important— like current PowerShell, it should be possible to select a line or word and then drag out to encompass more text.

@mikepurvis commented on GitHub (Jun 5, 2019): Double click and drag is also important— like current PowerShell, it should be possible to select a line or word and then drag out to encompass more text.
Author
Owner

@andb0t commented on GitHub (Jul 12, 2019):

Wow, great job everyone! Could you let me know how I can find out when this change will actually be rolled out?

@andb0t commented on GitHub (Jul 12, 2019): Wow, great job everyone! Could you let me know how I can find out when this change will actually be rolled out?
Author
Owner

@carlos-zamora commented on GitHub (Jul 12, 2019):

Since it’s merged to master, you can try it out by building the repo on GitHub today.

For the store update, it’ll be in the next release that’s being tracked with the 0.3 milestone.

@carlos-zamora commented on GitHub (Jul 12, 2019): Since it’s merged to master, you can try it out by building the repo on GitHub today. For the store update, it’ll be in the next release that’s being tracked with the [0.3 milestone](https://github.com/microsoft/terminal/milestone/10).
Author
Owner

@Luuk34 commented on GitHub (Aug 3, 2019):

Double click does not work when double-clicking on the first character of a line
(tested in Version 0.3)

@Luuk34 commented on GitHub (Aug 3, 2019): Double click does not work when double-clicking on the first character of a line (tested in Version 0.3)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1325