Keybinding to select tab by number? #6499
-
In Chrome and most other tabbed apps, I can use CMD+1, CMD+2 to select the first, second tabs, etc. I notice that in Zed, CMD+2/3 splits the editor instead. How can I change this behaviour? I couldn't find the binding in the keymaps.json file. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Same question. And those keys can not be rebound in neither "Pane" and "Workspace" context. |
Beta Was this translation helpful? Give feedback.
-
Adding this to [
{
"context": "Pane",
"bindings": {
"cmd-1": ["pane::ActivateItem", 0],
"cmd-2": ["pane::ActivateItem", 1],
"cmd-3": ["pane::ActivateItem", 2],
"cmd-4": ["pane::ActivateItem", 3],
"cmd-5": ["pane::ActivateItem", 4],
"cmd-6": ["pane::ActivateItem", 5],
"cmd-7": ["pane::ActivateItem", 6],
"cmd-8": ["pane::ActivateItem", 7],
"cmd-9": ["pane::ActivateItem", 8]
}
}
] |
Beta Was this translation helpful? Give feedback.
-
Zed actually does provide |
Beta Was this translation helpful? Give feedback.
Adding this to
keymap.json
solved it for me: