Lately, I’ve been trying to configure kakoune to behave more similar to non-modal editors in some ways (I’ll write a blog about my ideas at some point). I use this because I use Kakoune and vscode as my main editors and it can be a bit difficult to change between them.
Right now, I want to make the
<home> button move to the first non-blank character (as
gi does) if it is not there and to the beginning of the line if it’s there. This way, you can press once to go to the beginning of your code, as you’d usually do, or press twice to actually go to the beginning of the line.
This should work with multiple cursors and
<s-home> should extend to the same places as above.
Any clever and simple ideas from more expert people?