vimium icon indicating copy to clipboard operation
vimium copied to clipboard

How to deselect text?

Open rohitkrishna094 opened this issue 4 years ago • 5 comments

Say I went to some website and used visual mode(or just mouse) to select a certain block of text as shown below:

image

Now how can I deselect this text using keyboard itself that is using only vimium? With mouse, I would just click on empty space(or div) which would deselect that text(and remove the blue highlight). When I press f however, I can see many links, but there is no dummy link where I can just simulate a click of my mouse to deselect the above selected text.

image

I also tried pressing escape, which doesn't do much.

rohitkrishna094 avatar May 16 '20 05:05 rohitkrishna094

Um, currently Vimium has no such key binding to collapse a selection range.

gdh1995 avatar May 16 '20 14:05 gdh1995

Oh I see, however is there a vim way to do it? Like in normal vim, I think if you go back to normal mode by pressing escape,the selection gets disappeared. Is there any other way to do this?

rohitkrishna094 avatar May 16 '20 16:05 rohitkrishna094

Not in Vimium.

The below is an AD for another extension: I have a customized version of Vimium - Vimium C (https://github.com/gdh1995/vimium-c), and it extends many usages, including:

  • if in insert mode, <esc> blurs the current text box
  • or try collapsing a selection
  • or move focus to a parent iframe
  • or if hold on <esc>, blur a current focused element, even when it's not editable.

gdh1995 avatar May 17 '20 04:05 gdh1995

+1 for implementing deselection. Great addon btw :sunglasses:

gerazov avatar Jul 24 '21 20:07 gerazov

press / (search nothing) and ESC works for me.

conanforever22 avatar Jul 30 '22 13:07 conanforever22