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

Feature: Leader Key #82

Open
petejohanson opened this issue Aug 11, 2020 · 3 comments
Open

Feature: Leader Key #82

petejohanson opened this issue Aug 11, 2020 · 3 comments
Labels
behaviors enhancement New feature or request

Comments

@petejohanson
Copy link
Contributor

We should have a leader key behavior that allows you to add custom actions implemented for a certain sequence of keys pressed after the leader key behavior is triggered.

QMK Docs: https://docs.qmk.fm/#/feature_leader_key

I would imagine there would be something like:

&leader

In your keymap, and you would customize the leader behavior registration itself, elsewhere in the keymap, e.g.:

&leader {
  sequence_pi {
    keycodes = <P I>;
    action = <&not_sure_what_goes_here>;
  };

  sequence_foo {
    keycodes = <F O>;
    action = <&whatever_it_does>;
};
@petejohanson petejohanson added enhancement New feature or request behaviors labels Aug 11, 2020
@arabshapt
Copy link

This would be awesome! I am not sure how hard it would be to implement it... I am surprised how few people are wanting this feature.

@rmwphd
Copy link

rmwphd commented Dec 15, 2022

related PR #1380

@urob
Copy link
Contributor

urob commented Dec 8, 2024

As noted above there's Nick's PR for a position-based version of this.

For something closer to Pete's syntax, I created a module at https://github.com/urob/zmk-leader-key. The biggest difference relative to Nick's PR is that it is keycode-based and allows multiple leader instances with distinct sequences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
behaviors enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants