Skip to content

Use cmd+k as default keybinding for terminal clear #12585

Closed

Description

@Tyriar

Splitting out this from #6603 as the keybinding is coming later.

This is blocked on #12187

Activity

  1. added
    feature-request
    terminal
    on Sep 25, 2016
  2. added a commit that references this issue on Nov 23, 2016
    cbc0c0e
  3. added
    verification-needed
    on Nov 23, 2016
  4. ramya-rao-a commented on Dec 8, 2016

    @ramya-rao-a
    Contributor

    Verified in Mac and Windows

  5. ericclemmons commented on Jan 3, 2017

    @ericclemmons

    Just tried Cmd+K in Version 1.8.1 (1.8.1) and still getting:

    Waiting for second key of chord...

  6. Tyriar commented on Jan 3, 2017

    @Tyriar
    ContributorAuthor

    Do you have the terminal focused at the time?

  7. prietoguy commented on Jan 10, 2017

    @prietoguy

    I am also getting the same issue, and the terminal is focused.

    Running VSCode 1.8.1 on OSX 10.11.6

  8. ragingwind commented on Feb 22, 2017

    @ragingwind

    I am also facing the same issue and I found something. Shortcut for terminal clearing doesn't work when I have defined own keybindings with cmd+k $another-key, For example,

    // keybindings.json
    { "key": "cmd+k cmd+l",       "command": "workbench.action.focusNextGroup" },
    { "key": "cmd+k cmd+k",        "command": "workbench.action.focusPreviousGroup" },
    

    Clearing is working when I commented above defines

  9. Tyriar commented on Feb 22, 2017

    @Tyriar
    ContributorAuthor

    Jimmy (HyounKyoung) Moon (@ragingwind) yes, that's because those two "chord" keybindings override the cmd+k keybinding, this is expected. You will need to add the inverse when clause of the standard clear keybinding:

    { "key": "cmd+k cmd+l",       "command": "workbench.action.focusNextGroup",
      "when": "!terminalFocus" },
    { "key": "cmd+k cmd+k",        "command": "workbench.action.focusPreviousGroup",
      "when": "!terminalFocus" },
  10. locked and limited conversation to collaborators on Nov 18, 2017
  11. added a commit that references this issue on Sep 6, 2026
    94a4619
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestterminalverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions