wbolster / emacs-evil-colemak-basics

Emacs package with basic key rebindings for evil-mode with the Colemak keyboard layout
86 stars 23 forks source link

Bind gu/gU to their respective insert commands #13

Closed timacs closed 3 years ago

timacs commented 3 years ago

Warning! This PR might break your muscle memory. :wink:

In addition to i and I, Vim and Evil have two more insert commands mapped to gi and gI. I, for one, didn't know of them until recently, before perusing Vim's help system for its bindings related to our Colemak remapping. As fancy as they might seem, I think we should not disregard them. In particular, our README states that

…variations like gn and ge (gj and gk on Qwerty) to navigate visual lines instead of real lines also behave as expected.

So, some Vim veteran would expect all those four insert command to be on one key.

Then, we have to rebind the downcase/upcase commands (gu and gU) to gl and gL, resp. That's a natural choice after 59b0f5b.

What do you think?

wbolster commented 3 years ago

i agree with your reasoning. this both adds missing commands and improves consistency, so 🚀

wbolster commented 3 years ago

Warning! This PR might break your muscle memory. 😉

oh wow, indeed it does 😨 turns out i do use gu / gU for downcase/upcase, and now that enters the insert state.

i do like how it's more consistent, so let's see if i can get used to gl / gL (one key next to it).

(if i'm still annoyed in a few weeks i may resort to making this configurable, but i would prefer to not do that)

timacs commented 3 years ago

i may resort to making this configurable, but i would prefer to not do that

Maybe overriding gu/gU in your init.el would also work… :thinking:

wbolster commented 3 years ago

nah, i wrote this package so that it does not have to live in my init.el 🙃

i'll just adapt to the new keys i guess. i already like having gi (resume insert) and gI (insert at bol) at the same key as regular insert.