Search improvement: behave a bit more like sublime text by getting the BEST match in a given string, not just the first.
janraasch opened this issue · comments
Are you still working on this? This would be a great improvement.
I use this library for my (sublime-go-to-anything-like) chrome extension Tab Ahead.
Thanks, janraasch! My current project is winding down and this will be the first improvement I'll make.
Any other feature requests?
It would be nice to be able to return an array of strings to test in the extract
function. Say, for example, I'm looking for matches in items of type
{
title: "Some title",
url: "Some url"
}
Currently, you'd have to do some workaround like
extract = function (el) {
return el.title + 'myFunkyWorkaroundCharacters' + el.url;
}
and then split the result strings later on.
Any update on this? :)
Re: finding the best match - this might be a good place to look for ideas: http://stackoverflow.com/questions/23305000/javascript-fuzzy-search-that-makes-sense
@janraasch: I like the idea for that feature. It'd be great to see it in a new issue, since it's different from the topic of this issue.