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

More fuzzy searching #12

Open
tupton opened this issue Dec 12, 2015 · 3 comments
Open

More fuzzy searching #12

tupton opened this issue Dec 12, 2015 · 3 comments

Comments

@tupton
Copy link
Owner

tupton commented Dec 12, 2015

Instead of using LIKE, use some sort of better fuzzy search like sqlite's full text or fzf.

@sinewave
Copy link

sinewave commented Nov 7, 2021

Hi, just came across this extension and it's awesome!!!

Wanted to follow-up to see if any progress had been attempted on fuzzy search?

@arorabharat
Copy link

arorabharat commented Mar 22, 2022

Modifying the order of the column to this would give more useful result - ORDER BY last_visit_time DESC, typed_count DESC, visit_count DESC
https://github.com/tupton/alfred-chrome-history/blob/master/chrome.py#L58.
Existing chrome history search also return result in this order.

@fredcallaway
Copy link

fredcallaway commented May 19, 2022

One easy improvement is to search for each word separately rather than for the whole string (this is how tupton's safari history plugin works)

In history_results (chrome.py), change q = u'%{}%'.format(query) to q = u'%{}%'.format('%'.join(query.split(' ')))

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