Replies: 1 comment
-
Update: I should read the docs first next time. My fault. There is of course a way to configure cursor shape for the 3 modes, as I realized. So I set: [editor.cursor-shape]
insert = "bar"
normal = "bar"
select = "bar" Nice! The last issue I see now is that the editor command line is still using the block shape and that shape (or perhaps some of the resets above) causes that cursor is changed after exiting the editor in the terminal. The easiest fix would be to add option to switch cursor shape settings off completely (for people who would like the editor not touch the cursor shape at all). Second fix could be to add cursor shape settings for the editor command line mode as well and (and I know it's ugly) for exiting the editor so that a user can tell what cursor shape he wants to be set when editor exits. That's because AFAIK no terminal control sequence exists to report the terminal's cursor shape settings so that it could be recorded on editor start and there is therefor no nice way to cope with this issue. |
Beta Was this translation helpful? Give feedback.
-
I use bar cursor shape and would like to use it in Helix too! Can the cursor shape reset be optional and/or configurable?
It seems to me that the relevant code lines are the following (I did just very quick search for it):
helix/helix-tui/src/backend/crossterm.rs
Line 141 in 9420ba7
helix/helix-tui/src/backend/crossterm.rs
Line 161 in 9420ba7
The block cursor shape after the reset is very annoying to my eyes. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions