evil-quickscope icon indicating copy to clipboard operation
evil-quickscope copied to clipboard

normal-state only

Open PythonNut opened this issue 9 years ago • 4 comments

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.

PythonNut avatar Aug 24 '15 03:08 PythonNut

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 avatar Aug 24 '15 08:08 blorbx

@blorbx yes, evil-quickscope-always-mode.

PythonNut avatar Aug 24 '15 14:08 PythonNut

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

blaenk avatar Aug 24 '15 18:08 blaenk

Or maybe something as simple as (memq evil-next-state '(motion normal)).

PythonNut avatar Aug 28 '15 05:08 PythonNut