vimium icon indicating copy to clipboard operation
vimium copied to clipboard

Add fuzzy finder for bookmarks and history

Open D1mon opened this issue 8 years ago • 10 comments

When you press "o" opens the input search. Usual search is used. It would be nice to work fuzzy finder search.

D1mon avatar Mar 24 '17 09:03 D1mon

bB

innaterebel avatar Mar 24 '17 22:03 innaterebel

b - Open a bookmark B - Open a bookmark in a new tab o - Open URL, bookmark or history entry O - Open URL, bookmark or history entry in a new tab

D1mon avatar Mar 25 '17 16:03 D1mon

Dupe of https://github.com/philc/vimium/issues/2087. Would be a great feature.

@smblott-github, @mrmr1993 I'm not familiar with the code. Would https://github.com/philc/vimium/blob/master/pages/vomnibar.coffee be the place to implement this? Maybe this can help: https://github.com/mattyork/fuzzy

binarious avatar Oct 27 '17 16:10 binarious

@binarious You'll probably want to change the code that provides the results, which will be in one of the files in background_scripts with competion in its name (most likely completion.coffee).

mrmr1993 avatar Oct 27 '17 17:10 mrmr1993

You would start here: https://github.com/philc/vimium/blob/master/background_scripts/completion.coffee#L647.

But there would be knock-on consequences in places such as the code that highlights the matched text.

We probably would not want fuzzy matches displacing actual matches, particularly for bookmarks.

smblott-github avatar Oct 27 '17 17:10 smblott-github

Probably duplicate of #2450

@smblott-github

  • How about using special characters to control the search? Something along the lines of https://github.com/junegunn/fzf#search-syntax with the exception that Vimium users expect the literal search to be default
  • Would it be possible to create a split column below the search bar where one would show the literal results and the other the fuzzy matches?

toraritte avatar Oct 30 '17 19:10 toraritte

How about using special characters to control the search?

No. The user shouldn't have to learn anything, it should just work.

one would show the literal results and the other the fuzzy matches

That's not how I would do it. I'd make sure that the scores for fuzzy matches are always lower than those for proper matches, then I'd just throw them in with everything else.

smblott-github avatar Oct 31 '17 06:10 smblott-github

This would be an awesome feature to have, how come it's not being discussed more actively :D

MIvanchev avatar Apr 27 '23 10:04 MIvanchev

This is the feature I miss the most. I know there is a separate issue for searching tabs, but I think all of the search fields should support fuzzy search. If the concern is that some users might not like it, an option could be added under a new miscellaneous entry to control it.

DusanLesan avatar Oct 06 '24 14:10 DusanLesan

There is a js implementation of fzf https://github.com/ajitid/fzf-for-js

forestchen1224 avatar Oct 10 '24 03:10 forestchen1224