Closed AniAggarwal closed 2 years ago
@AniAggarwal I had a look at this and it's not possible to get that value so oh-my-posh can use it. What you could do is change the implementation to use a cursor style, that will indicate the current mode by displaying a different cursor:
set vi-ins-mode-string \1\e[6 q\2
set vi-cmd-mode-string \1\e[2 q\2
# optionally:
# switch to block cursor before executing a command
set keymap vi-insert
RETURN: "\e\n"
This worked, thanks! I use kitty so I need to figure out how to make it work with that now, but it works on Gnome terminal. Thanks for the pointer.
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.
Code of Conduct
What would you like to see changed/added?
I use VIM-like keybinds in terminal, set via my
.inputrc
:So that I can see which mode I am in, a
+
or a:
is displayed at the beginning of my prompt and looks like below:I would love it if there was a way to integrate that into oh-my-posh.