Skip to content

Feature: Add CTRL+SHIFT+* Support in Terminal #84080

Closed

Description

Much like the new Windows Terminal, and various terminal applications on other OSes, it would be nice of the terminal panel in VS Code supported CTRL+SHIFT+*, such as CTRL+SHIFT+C for copy and CTRL+SHIFT+V for paste.

This is pretty much built into muscle memory and it's annoying on windows in VS Code (I think it already works this way at least in Linux) when the behavior is different and/or unsupported.

Activity

  1. changed the title [-]Feature: Add CTRL+SHIFT+* Support[/-] [+]Feature: Add CTRL+SHIFT+* Support in Terminal[/+] on Nov 6, 2019
  2. added
    feature-request
    terminal
    on Nov 7, 2019
  3. removed their assignment
    on Nov 7, 2019
  4. Grommers00 commented on Nov 7, 2019

    @Grommers00
    Contributor

    Could I try tackling this?

  5. tracker1 commented on Nov 8, 2019

    @tracker1
    Author

    Daniel Imms (@Tyriar) thanks, had to add a keybindings.json file to %APPDATA%/Code

    James Inkster (@Grommers00) hopefully your PR is accepted, would be nice if the defaults supported both... for me muscle memory has gotten pretty strong.. I tend to split my time pretty evenly on Windows and Linux lately, though less time on Mac since I switched to Linux at home, and will probably swap out my Macbook later in the year.

  6. tracker1 commented on Nov 8, 2019

    @tracker1
    Author

    Also, it is the default in the new windows terminal itself, so would be nice to support it.. may even want to align the default with a big release note.

  7. added
    help wanted
    on Nov 8, 2019
  8. Tyriar commented on Nov 8, 2019

    @Tyriar
    Contributor

    James Inkster (@Grommers00) sure, let's align since Windows Terminal does it. It should be fairly easy to do, here's the code pointer:

    actionRegistry.registerWorkbenchAction(new SyncActionDescriptor(CopyTerminalSelectionAction, CopyTerminalSelectionAction.ID, CopyTerminalSelectionAction.LABEL, {
    primary: KeyMod.CtrlCmd | KeyCode.KEY_C,
    linux: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KEY_C }
    }, ContextKeyExpr.and(KEYBINDING_CONTEXT_TERMINAL_TEXT_SELECTED, KEYBINDING_CONTEXT_TERMINAL_FOCUS)), 'Terminal: Copy Selection', category);
    }
    if (BrowserFeatures.clipboard.readText) {
    actionRegistry.registerWorkbenchAction(new SyncActionDescriptor(TerminalPasteAction, TerminalPasteAction.ID, TerminalPasteAction.LABEL, {
    primary: KeyMod.CtrlCmd | KeyCode.KEY_V,
    linux: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KEY_V }
    }, KEYBINDING_CONTEXT_TERMINAL_FOCUS), 'Terminal: Paste into Active Terminal', category);

  9. Grommers00 commented on Nov 8, 2019

    @Grommers00
    Contributor

    Awesome thanks! I'll be trying it out this weekend!

    Daniel Imms (@Tyriar) thanks for pointing me in the right direction :).

  10. Grommers00 commented on Nov 11, 2019

    @Grommers00
    Contributor

    I believe this is good, the comment line above also had a spelling mistake, miht instead of might. So I included that as well. Also, I tested and seemed to work well.

    Let me know if this is good or if I need to make additional changes.

  11. added a commit that references this issue on Nov 17, 2019
    720d085
  12. added
    verification-needed
    windows
    on Dec 2, 2019
  13. locked and limited conversation to collaborators on Jan 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requesthelp wantedterminalverification-neededverifiedwindows

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions