Kakoune: Swap Gl to gL and so forth

Created on 12 Apr 2019  路  2Comments  路  Source: mawww/kakoune

Why? Because that's much more merciful and it's easier to put more commands into g mode if it works like this. Plenty of times I open the menu with g, probably due to vim habits, when I meant G, so now I'm forced to hit esc and try again. I'm betting some of you have already made a bind into g that swaps it to G.

Like for example in #2851, which would add (replace) gj and gk it would be much easier to add gJ and gK than to somehow (don't even know if it's possible) check if the current mode is G instead of g.

Most helpful comment

Pros of this change:

  • Ga and Gf make little sense
  • it frees G for personal usage

Cons:

  • the g autoinfo will get quite big
  • no way to distinguish between g. and G. without choosing another char than .
  • no way to distinguish between 3g and 3G

All 2 comments

Pros of this change:

  • Ga and Gf make little sense
  • it frees G for personal usage

Cons:

  • the g autoinfo will get quite big
  • no way to distinguish between g. and G. without choosing another char than .
  • no way to distinguish between 3g and 3G

I would probably add a note at the bottom of g autoinfo saying capitals extend. I don't really associate 3g as a command for g, but as a command of its own. g. vs G. is ruined, no doubt. Change keys, I reckon.

Was this page helpful?
0 / 5 - 0 ratings