Emulating "Common User Access" / "normy GUI" idioms #9217
Unanswered
Ericson2314
asked this question in
Q&A
Replies: 0 comments
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.
-
I am fond of of these idioms / old school app consistency. Now that may sound odd --- "just use Notepad++, vscode, etc. then!" but I do like modal editors too, and can think these two seemingly opposed things can play along.
Challenge 1: control- and shift- arrow keys
Modal editors tend not to really care about modifier + arrow keys, so the good news is there isn't much by way of conflicts. In
https://github.com/Ericson2314/nixos-configuration/blob/6a94e7ec30524ef4804c280566894c62d7bb15b6/user/helix/default.nix#L40-L51 / https://github.com/Ericson2314/nixos-configuration/blob/6a94e7ec30524ef4804c280566894c62d7bb15b6/user/helix/default.nix#L89-L103
I have a pretty nice first attempt. In particular, CUA "shift-" can be implemented by binding the
extend_*
version of commands in normal mode. This works for adjacent char / line / word motions, but not paragraph motions:goto_{prev,next}_paragraph
(like the othergoto_*
) does not come inmove
vsextend
variants. Is this something that could be fixed?Challenge 2: more natural looking bar cursor / zero-width selection
I just wrote this up into an issue, #9216, as I had pondered it longer.
Beta Was this translation helpful? Give feedback.
All reactions