vim-easymotion icon indicating copy to clipboard operation
vim-easymotion copied to clipboard

Search using lowercase letters, select with uppercase letters.

Open roosemberth opened this issue 7 years ago • 0 comments

Hello,

I was a vimperator user until Mozilla chose to break its api, back then I used the 'follow hint' command, with HINTCHARS variable set to my keyboard middle row un uppercase (ASDFGHJKL), so that I could start typing the text in the links and when there were few enough choices, I could just type any of these uppercase letters until I make my choice. I think this feature would be usefull in vim; I'll try to explain it bellow.

Given the following text:

The quick brown fox jumps over the lazy dog while he owls in his own dream.
  • When I type <leader>/ow I would like to see
The quick brown fox jumps over the lazy dog while he owls in his own dream.
            A                                        S           D

where the characters A S D are in the same line as the sentence, but in red, while the sentence behind is “shaded” like in the animated demostration in the README

  • When I type S (uppercase) I would like to jump to the beginning of the world 'owls' The easymotion equivalent would be something like \\fk.

the search behavior could be similar to incsearch: keep the screen where the first occurence from the current line is displayed, if no hits scroll to the first occurrence.

Is a feature like this feasible? Sorry if this already exist. I'm getting started with easymotion and I couldn't find any issues/blog posts/comments regarding anything similar.

Thanks for such a great plugin!

roosemberth avatar Feb 07 '18 18:02 roosemberth