evil-quickscope
evil-quickscope copied to clipboard
normal-state only
evil-quickscope
is of limited usefulness in states other than normal
and motion
, so it would be awesome to have an option to disable the highlighting in those states.
Are you referring to evil-quickscope-always-mode
? In evil-quickscope-mode
, highlights should only show up after pressing one of the target keys, so this shouldn't be an issue. For evil-quickscope-always-mode
, I agree that it can be noisy in insert mode.
@blorbx yes, evil-quickscope-always-mode
.
You can probably use something like the evil-normal-state-{entry,exit}-hook
hooks or the more general evil-next-state
hook in which case you'd check the evil-{next,previous}-state
variables to see if they're e.g. 'insert
or you could also use the evil-insert-state-p
family of predicates e.g. (evil-insert-state-p evil-next-state)
.
Or maybe something as simple as (memq evil-next-state '(motion normal))
.