Skip to content

fix: fix leader <space> - #83

Merged
davidjenni merged 1 commit into
mainfrom
fix-zed-vim
Jul 22, 2026
Merged

davidjenni merged 1 commit into
mainfrom
fix-zed-vim

Conversation

@davidjenni

Copy link
Copy Markdown
Owner

limit accepting leader+key to normal mode only

Copilot AI review requested due to automatic review settings July 22, 2026 06:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Zed keymap to prevent space … leader-chord bindings from triggering while editing, by tightening the context conditions so leader bindings only apply in a non-editing state.

Changes:

  • Added not_editing to the VimControl keymap context.
  • Added not_editing to the Workspace keymap context.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread zed/keymap.json
Comment on lines 9 to 13
{
"context": "VimControl && !menu",
"context": "VimControl && !menu && not_editing",
"bindings": {
"ctrl-\\": "terminal_panel::ToggleFocus",
"space e": "pane::RevealInProjectPanel",
Comment thread zed/keymap.json
Comment on lines 25 to 29
{
"context": "Workspace",
"context": "Workspace && not_editing",
"bindings": {
"ctrl-\\": "terminal_panel::ToggleFocus",
"space e": "workspace::ToggleRightDock",
@davidjenni
davidjenni merged commit 153a678 into main Jul 22, 2026
4 checks passed
@davidjenni
davidjenni deleted the fix-zed-vim branch July 22, 2026 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants