Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Make cursor shape reset configurable #6565

Closed
mjf opened this issue Apr 3, 2023 · 1 comment
Closed

Make cursor shape reset configurable #6565

mjf opened this issue Apr 3, 2023 · 1 comment
Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements

Comments

@mjf
Copy link

mjf commented Apr 3, 2023

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):

The block cursor shape after the reset is very annoying to my eyes. Thank you.

@mjf
Copy link
Author

mjf commented Apr 3, 2023

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.

@kirawi kirawi added C-enhancement Category: Improvements A-helix-term Area: Helix term improvements labels Apr 13, 2024
@helix-editor helix-editor locked and limited conversation to collaborators Apr 14, 2024
@pascalkuthe pascalkuthe converted this issue into discussion #10424 Apr 14, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

2 participants