Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change vim leader mapping #4375

Open
1 task done
rauann opened this issue Nov 4, 2023 · 1 comment
Open
1 task done

Change vim leader mapping #4375

rauann opened this issue Nov 4, 2023 · 1 comment
Labels
enhancement [core label] vim

Comments

@rauann
Copy link
Contributor

rauann commented Nov 4, 2023

Check for existing issues

  • Completed

Describe the feature

Is there a way to change the predefined vim leader g to another key, like space?

If applicable, add mockups / screenshots to help present your vision of the feature

No response

@rauann rauann added admin read Pending admin review enhancement [core label] triage Maintainer needs to classify the issue labels Nov 4, 2023
@JosephTLyons JosephTLyons added vim and removed triage Maintainer needs to classify the issue admin read Pending admin review labels Nov 6, 2023
@ConradIrwin
Copy link
Member

@rauann Currently the only configuration for keyboard mappings is to map from what is typed to an "action". So although it's a bit tedious, you could implement something like a leader key by copying the bindings over.

For example if you wanted to use , you could do something like:

[
  {
    "context": "Editor && VimControl && !VimWaiting && !menu",
    "bindings": {
      ", .": "editor::ToggleCodeActions",
      ", shift-a": "editor::FindAllReferences",
      // etc.
    }
  }
]

@JosephTLyons JosephTLyons transferred this issue from zed-industries/community Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement [core label] vim
Projects
None yet
Development

No branches or pull requests

3 participants