-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "highlight current line" #1761
Comments
I'd like to work on this |
yes having a current line highlighted is absolutely nice, adding to that the cursor should show | instead of a big block when inserting text. big block cursor should only be shown when not in insert mode look at this video to "feel" how nice is it with | cursor and full current line highligted |
There is a setting for cursor per mode: [editor.cursor-shape]
insert = "bar"
normal = "block"
select = "underline" |
Just gonna drop the term cursorline in here, for anyone searching this in the future. That's what vim calls it. A consideration that needs to be made (in contrast to many other editors) is that helix can have multiple cursors. Probably all lines should be highlighted then. |
Should be an easy thing to add, there's already code that does this to highlight the current position of the debugger: helix/helix-term/src/ui/editor.rs Lines 103 to 111 in cc68fa8
|
Ok, I took my shot at this by patching together the logic from the DAP highlight and gutter highlighting (see TobTobXX@f9f33e0). It works, but only the default theme makes it show up. (Probably bc Still need to implement config... |
A standard feature of most editors is highlighting the current line.
This is something I miss in Helix.
The text was updated successfully, but these errors were encountered: