rhysd / clever-f.vim

Extended f, F, t and T key mappings for Vim.
https://rhysd.github.io/clever-f.vim
1.01k stars 44 forks source link

Clear highlights after timeout #60

Closed emiham closed 3 years ago

emiham commented 3 years ago

Just found this addon and I really like it!

One thing that struck me though is that if you set a timeout the highlights remain even after it's triggered. I think it would make sense to clear them once you no longer have the option to jump to them without starting a new search.

rhysd commented 3 years ago

I think it would make sense to clear them once you no longer have the option to jump to them without starting a new search.

Can you show some example? If target character exists in the line, it means cursor can always jump to it. Cursor can go backward with F after going forward.

rhysd commented 3 years ago

BTW I implemented highlight timeout today. It might be helpful for you.

https://github.com/rhysd/clever-f.vim#highlight-timeout

emiham commented 3 years ago

Can you show some example? If target character exists in the line, it means cursor can always jump to it. Cursor can go backward with F after going forward.

I just meant that you can't go there with just f (which is the point of the timeout), but you can of course still reach it with a new search.

Thanks for the incredibly quick fix, it works perfectly!