Skip to content

Cursor insert mode style affects other applications #35

@Hubro

Description

@Hubro

I enjoy using these cursor styles to clearly distinguish between normal mode and insert mode:

ZVM_INSERT_MODE_CURSOR=$ZVM_CURSOR_BLINKING_BEAM
ZVM_NORMAL_MODE_CURSOR=$ZVM_CURSOR_BLOCK

However, the insert mode cursor style is inherited by other applications, and those applications don't handle switching between cursor styles when switching modes, which makes the cursor permanently stay in the insert mode style until the application is exited.

For example, try starting Vim from the terminal, or simply start bash. Inside vim or bash, the insert mode cursor is permanently active, even when switching to normal mode. This is extremely distracting.

I wish zsh-vi-mode would "reset" the cursor style to default before executing a command, then set the custom style again when the command exits. This way applications like vim, bash, python and any other interactive CLI application would not be affected by it.

(Put a different way, temporarily set ZVM_CURSOR_STYLE_ENABLED=false while a process is running in the terminal)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions