Replies: 1 comment 6 replies
-
Most of the insert mode bindings are so called "emacs bindings" that work similarly on a whole lot of other input fields. I personally don't recommend using any of these, they're mostly there for compatibility. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hellix is awesome and a lot of awesomeness comes from reasonable defaults and shortcuts. I cannot remember all the shortcuts unless I understand the building blocks and then extend on those intuitively. But in some cases, I find myself unable to reason about shortcuts and I need your help.
Let me give an example. In insert mode, a very helpful shortcut is deleting characters / words in the forwards / backwards direction (There is something to be said about the lacking support of ctrl + [h, j, k, l] to navigate by one char in insert mode :). That's for another day). Usually I feel that there are these philosophies:
<modifier> + <Key>
provides an action, then<modifier> + <shift> + <Key>
provides the backwards version of it.<Key>
provides an action, Alt +<Key>
provides the same action, but backwards. Thinkalt
as thealternate
.Now let's look at the delete shortcuts in the insert mode:
How do I reason about this ? Ctrl + d totally makes sense as this is also supported in most terminals and so our fingers do the right thing automatically. Now with ctrl + d deleting a character forward, I would expect ctrl + shift + d to delete a char backwards. Maybe alt + d deletes a word forward and alt + shift + d deletes the word backwards ? This is just one choice, there can be others and even better one. But the key is to have some underlying rationale between forwards / backwards operations and their extensions to words, end of line and then another layer for N such items. And some building blocks (the most fundamental ones of course) transcend the mode boundaries like the keys h, j, k, l for navigation.
I am lacking the underlying intuition in the current choice. But because this is such a popular editor, I am sure people would have made the choices after great debates and weighing in options. So if you can tell me how you reason about this in your head, that would help me as well reason about it as well, and I can be more productive sooner. Thanks a lot !
Beta Was this translation helpful? Give feedback.
All reactions