Replies: 2 comments 5 replies
-
|
I can't find the PR anymore but the underlying editing primitives in Helix actually support bar cursors, but we normalize them to 1-width between operations since it's hard to represent in a terminal. We were considering changing this in the future or on different frontends, e.g. webgpu |
Beta Was this translation helpful? Give feedback.
4 replies
-
|
After working using it for a few days... there's plenty of little problems that needs to be addressed. They all seem fixable, but I'm not sure how much it is worth to keep diverging from Helix, as I don't really want to maintain my own full fork. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
For years now I've been advocating for CLI text editors to stop treating cursor as a block, and embrace cursor as a beam (aka I-shaped), just like GUI text editors.
I mentioned it before in the discussion around line-selection: #356
I just got LLM to implement it for me in Helix.
If anyone is interested here is a very short demo video: https://www.youtube.com/watch?v=qmvXbpPIA4o . The source code is at https://github.com/dpc/helix/commits/i-cursor
Such a change:
xbehavior on empty lines #4847 unnecessary)At the beginning of the video, you can see that
xactually changes from an empty selection to selecting a whole line, and that's clear and intuitive.Later you can see that secondary selections look just fine even though terminal can display only a single cursor.
The
dcommand is altered to act like DEL key does when the selection is empty. Some other minor changes might be desireable w.r.t empty selection, but overall, this is not making text editing all that different.Beta Was this translation helpful? Give feedback.
All reactions