[PR #16929] Quick copy/Quick jump #31057

Open
opened 2026-01-31 09:44:49 +00:00 by claunia · 0 comments
Owner

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

State: closed
Merged: No


Summary of the Pull Request

WezTerm has a Quick Select feature that allows you to specify a regex to find patterns within the buffer and quickly copy or navigate to the matches using alphabet hints.
https://wezfurlong.org/wezterm/quickselect.html

I added a implementation of this to my personal build and find that I use it for almost every copy/navigation operation.

  • For my configs I defined 2 regexs, 1 for words and one for lines which seems to cover everything that I would want to do but it is nice to have the flexibility to define specific ones for stuff like hashes and addresses

In its current state I don't think that it makes sense to merge this. But if you do decide to add something like this, I would love to work on it.

QuickSelect

Configs that I use.

{
  "command": 
  {
    "action": "quickSelect",
    "input": "[\\w\\d\\S]+",
    "shouldCopy": true
  },
  "keys": "alt+shift+space",
  "name": "Quick Copy Word"
},
{
  "command": 
  {
    "action": "quickSelect",
    "input": "[\\w\\d\\S]+"
  },
  "keys": "alt+space",
  "name": "Quick Jump Word"
},
{
  "command": 
  {
    "action": "quickSelect",
      "input": ".*\\S",
      "shouldCopy": false
  },
    "keys": "alt+l",
    "name": "Quick Jump Line"
},
{
  "command": 
  {
    "action": "quickSelect",
    "input": ".*\\S",
    "shouldCopy": true
  },
  "keys": "alt+shift+l",
  "name": "Quick Copy Line"
},

References and Relevant Issues

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

PR Checklist

  • Closes #xxx
  • Tests added/passed
  • Documentation updated
    • If checked, please file a pull request on our docs repo and link it here: #xxx
  • Schema updated (if necessary)
**Original Pull Request:** https://github.com/microsoft/terminal/pull/16929 **State:** closed **Merged:** No --- ## Summary of the Pull Request WezTerm has a Quick Select feature that allows you to specify a regex to find patterns within the buffer and quickly copy or navigate to the matches using alphabet hints. https://wezfurlong.org/wezterm/quickselect.html I added a implementation of this to my personal build and find that I use it for almost every copy/navigation operation. - For my configs I defined 2 regexs, 1 for words and one for lines which seems to cover everything that I would want to do but it is nice to have the flexibility to define specific ones for stuff like hashes and addresses In its current state I don't think that it makes sense to merge this. But if you do decide to add something like this, I would love to work on it. ![QuickSelect](https://github.com/microsoft/terminal/assets/811029/5a636ae0-a7b1-43a3-9529-21f3ee9dfbc8) Configs that I use. ```json { "command": { "action": "quickSelect", "input": "[\\w\\d\\S]+", "shouldCopy": true }, "keys": "alt+shift+space", "name": "Quick Copy Word" }, { "command": { "action": "quickSelect", "input": "[\\w\\d\\S]+" }, "keys": "alt+space", "name": "Quick Jump Word" }, { "command": { "action": "quickSelect", "input": ".*\\S", "shouldCopy": false }, "keys": "alt+l", "name": "Quick Jump Line" }, { "command": { "action": "quickSelect", "input": ".*\\S", "shouldCopy": true }, "keys": "alt+shift+l", "name": "Quick Copy Line" }, ``` ## References and Relevant Issues ## Detailed Description of the Pull Request / Additional comments ## Validation Steps Performed ## PR Checklist - [ ] Closes #xxx - [ ] Tests added/passed - [ ] Documentation updated - If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx - [ ] Schema updated (if necessary)
claunia added the pull-request label 2026-01-31 09:44:49 +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#31057