Skip to content

Rebinding cmd-j and cmd-k to navigate in menus? #11705

Answered by nelsonr
nelsonr asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, so I believe I found a solution.

In order to be possible to use cmd-k as its own keybinding, it requires disabling all the default chords where it's used. This can be done by copying all instances of it from the default keymap into your keymap and then setting everything to null.

With this, Zed will no longer introduce a delay when using cmd-k.

[
  {
    "context": "Workspace",
    "bindings": {
      "cmd-k s": null,
      "cmd-k cmd-s": null,
      "cmd-k cmd-t": null,
      "cmd-k m": null,
      "cmd-k cmd-left": null,
      "cmd-k cmd-right": null,
      "cmd-k cmd-up": null,
      "cmd-k cmd-down": null,
      "cmd-k shift-left": null,
      "cmd-k shift-right": null,
      "cmd…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@nelsonr
Comment options

@nelsonr
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by nelsonr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants