Add configurable cursor shape via settings.cursor_shape#587
Open
xsa-dev wants to merge 1 commit intoulyssa:mainfrom
Open
Add configurable cursor shape via settings.cursor_shape#587xsa-dev wants to merge 1 commit intoulyssa:mainfrom
settings.cursor_shape#587xsa-dev wants to merge 1 commit intoulyssa:mainfrom
Conversation
VAWVAW
reviewed
Mar 13, 2026
Contributor
VAWVAW
left a comment
There was a problem hiding this comment.
This works as described but I'm not sure that this is the best way to implement it. I believe there should at least be an auto option to change the cursor shape depending on the vim mode (i.e. block in normal mode, line in insert mode and underline in replace mode). Since I believe that modalkit doesn't expose the current mode, it would make more sense to implement this in modalkit.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a new
settings.cursor_shapeoption to configure the terminal cursor shape used by iamb.Supported values:
defaultblocklineunderlineChanges
CursorShapeconfig enum with serde parsingcursor_shapetoTunables/TunableValues(including merge + default handling)crossterm::cursor::SetCursorStyledocs/iamb.5cursor_shape = \"default\"toconfig.example.tomltest_parse_cursor_shape)Motivation
Closes a long-standing request to support non-block cursors and allows users to match their terminal/editor preferences.
Closes #197