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

Non-interactive mode? #66

Open
v-yarotsky opened this issue Jan 2, 2015 · 3 comments
Open

Non-interactive mode? #66

v-yarotsky opened this issue Jan 2, 2015 · 3 comments

Comments

@v-yarotsky
Copy link

As far as I understand, selecta currently requires a tty. However, it might also be useful to just have a sort of fuzzy-grep.
In my case I have a script which yields a list of urls, and I want to get a list of urls (fuzzy) matching a string ordered by score.

@garybernhardt
Copy link
Owner

This is the second vote for a non-interactive mode. I think I'm fine with supporting it. The one wrinkle is that I'd like the scoring algorithm to be very stable before supporting this, since behavior should be consistent once people are relying on it in scripts. I still consider the current matching algorithm a simple stop-gap, but Selecta will need to be ported to a much faster language to support the algorithm I really want, so it might be a while before things are stable.

@airblade
Copy link

airblade commented Jan 5, 2015

Out of curiosity, would you mind describing the algorithm you really want?

@garybernhardt
Copy link
Owner

I just described the algorithm and its performance problems in the algorithm issue: #30 (comment)

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

No branches or pull requests

3 participants