Option to copy on Enter key-press like classic console QuickEdit mode #3464

Closed
opened 2026-01-30 23:21:57 +00:00 by claunia · 6 comments
Owner

Originally created by @nguerrera on GitHub (Aug 17, 2019).

Description of the new feature/enhancement

Going back many years, as long as QuickEdit mode was enabled, you could use the following workflow to copy/paste

  1. Make selection with mouse and left button
  2. Press Enter to Copy
  3. Right click to paste

I'm aware that step 2 can be done in both classic and new terminal using right click instead of Enter. I'm further aware that that is more efficient, but I was taught to press enter over a decade ago and I can't shake the muscle memory. I have been committing unfinished commands at step 2 and pasting prior junk like whole documents as commands at step 3 since adopting the new terminal. It would be great if there was a way to make it tolerate my sub-optimal technique. 😄

I would like an option to make Enter copy when I have a selection, just like right click does now.

Originally created by @nguerrera on GitHub (Aug 17, 2019). # Description of the new feature/enhancement Going back many years, as long as QuickEdit mode was enabled, you could use the following workflow to copy/paste 1. Make selection with mouse and left button 2. Press Enter to Copy 3. Right click to paste I'm aware that step 2 can be done in both classic and new terminal using right click instead of Enter. I'm further aware that that is more efficient, but I was taught to press enter over a decade ago and I can't shake the muscle memory. I have been committing unfinished commands at step 2 and pasting prior junk like whole documents as commands at step 3 since adopting the new terminal. It would be great if there was a way to make it tolerate my sub-optimal technique. 😄 I would like an option to make Enter copy when I have a selection, just like right click does now.
claunia added the Issue-FeatureNeeds-TriageNeeds-Tag-Fix labels 2026-01-30 23:21:57 +00:00
Author
Owner

@DHowett-MSFT commented on GitHub (Aug 17, 2019):

I have a feeling that now that #2446 is merged, this will just work if you add a key binding with command=copy keys=enter. Once we fix #2389, you can even keep it alongside ctrl+shift+c!

@DHowett-MSFT commented on GitHub (Aug 17, 2019): I have a feeling that now that #2446 is merged, this will just work if you add a key binding with command=`copy` keys=`enter`. Once we fix #2389, you can even keep it alongside `ctrl+shift+c`!
Author
Owner

@nguerrera commented on GitHub (Aug 17, 2019):

@DHowett-MSFT Would I need to build from source to confirm that or is that already worth trying on what I got from the store?

@nguerrera commented on GitHub (Aug 17, 2019): @DHowett-MSFT Would I need to build from source to confirm that or is that already worth trying on what I got from the store?
Author
Owner

@DHowett-MSFT commented on GitHub (Aug 17, 2019):

For that one, you'll need to build from source. Sorry about that! We're tracking for a new preview release "pretty soon," though.

@DHowett-MSFT commented on GitHub (Aug 17, 2019): For that one, you'll need to build from source. Sorry about that! We're tracking for a new preview release "pretty soon," though.
Author
Owner

@nguerrera commented on GitHub (Aug 17, 2019):

No worries at all! I'll wait a bit. Thanks!

@nguerrera commented on GitHub (Aug 17, 2019): No worries at all! I'll wait a bit. Thanks!
Author
Owner

@carlos-zamora commented on GitHub (Aug 20, 2019):

Just tested it on master and @DHowett-MSFT is correct! You'll have to add the following keybinding:

{
    "command": "copy",
    "keys": [
        "enter"
    ]
}

It's available if you build from master or in the next release. Thanks!

@carlos-zamora commented on GitHub (Aug 20, 2019): Just tested it on `master` and @DHowett-MSFT is correct! You'll have to add the following keybinding: ``` { "command": "copy", "keys": [ "enter" ] } ``` It's available if you build from `master` or in the next release. Thanks!
Author
Owner

@nguerrera commented on GitHub (Sep 6, 2019):

Works like a charm, thanks!

@nguerrera commented on GitHub (Sep 6, 2019): Works like a charm, thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#3464