readme: Add "gj" and "gk" to the rationale

This commit is contained in:
Pierre Neidhardt 2017-11-10 10:19:19 +01:00
parent 3b31ef5971
commit 352b3581d8
1 changed files with 6 additions and 1 deletions

View File

@ -132,13 +132,18 @@ The rules are more-or-less sorted by priority.
Many special modes share the same set of similar actions. Those actions should
share the same bindings across all modes whenever feasible.
*** Motion (~[~, ~]~, ~{~, ~}~, ~(~, ~)~, ~C-j~, ~C-k~)
*** Motion (~[~, ~]~, ~{~, ~}~, ~(~, ~)~, ~gj~, ~gk~, ~C-j~, ~C-k~)
- ~[~ and ~]~: Use ~[-~ and ~]-~ prefixed keys for navigation between sections.
If the mode makes no difference between the end of a section and the beginning
of the next, use ~[~ and ~]~.
- ~gj~ and ~gk~: synonym for ~[~ and ~]~. That's what [[evil-magit][evil-magit]] does.
*Question:* Should ~gj~/~gk~ rather be synonyms for ~C-j~/~C-k~? They cannot
emulate the behaviour of ~[]~ or ~][~.
- ~C-j~, ~C-k~: If there is granularity, i.e. subsections, use ~C-j~ and ~C-k~
to browse them. This reflects [[evil-magit][evil-magit]] and [[evil-mu4e][evil-mu4e]] default
bindings.