Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search improvement: behave a bit more like sublime text by getting the BEST match in a given string, not just the first. #3

Open
janraasch opened this issue May 14, 2013 · 5 comments
Assignees

Comments

@janraasch
Copy link

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.

@mattyork
Copy link
Owner

Thanks, janraasch! My current project is winding down and this will be the first improvement I'll make.

Any other feature requests?

@ghost ghost assigned mattyork May 15, 2013
@janraasch
Copy link
Author

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.

@marekhrabe
Copy link

Any update on this? :)

@knod
Copy link

knod commented May 28, 2015

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

@knod
Copy link

knod commented May 28, 2015

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants