Documentation for writing key bindings from scratch #555
-
I use a custom keyboard layout, and as I am discovering meow, I want to write the key bindings from scratch. I unfortunately cannot find documentation about this, with the exception of the examples and the tutorial. At the moment, I am following the tutorial and adding key bindings as concepts are introduced, but it could be very useful to have some information about them. For instance, what I would like is
Is this information already described somewhere? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hey, I believe the example in Get Started can be where you start with. I do have some principles in mind for how a good command layout should look like. For example, the commands should be arranged by their names mostly yet still be ergonomic and efficient. And to be efficient, we do not only care about the position of each command, but need all high-frequency used key combinations to be easy to press. Personally, I have no wonderful solution so far, especially for all keyboard layouts.
Check here for key bindings in motion state. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the link for the bindings in motion state, it really helps. I have a followup about mode-specific keymaps. I have defined the following for notmuch: (use-package notmuch
:bind (:map notmuch-show-mode-map
("x" . notmuch-show-archive-message-then-next-or-next-thread)
("d" . as/notmuch/show-delete))) and it works well, because |
Beta Was this translation helpful? Give feedback.
Hey,
I believe the example in Get Started can be where you start with.
It shows you all the useful functions to bind. Also there's an issue #506 discussing a ergonomic key binding design.
I do have some principles in mind for how a good command layout should look like. For example, the commands should be arranged by their names mostly yet still be ergonomic and efficient. And to be efficient, we do not only care about the position of each command, but need all high-frequency used key combinations to be easy to press. Personally, I have no wonderful solution so far, especially for all keyboard layouts.
meow-cheatsheet-layout
is useful when you are using a custom keyboard layout, and want t…