tupton / alfred-chrome-history

Search your Google Chrome history in Alfred
195 stars 17 forks source link

More fuzzy searching #12

Open tupton opened 8 years ago

tupton commented 8 years ago

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

sinewave commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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(' ')))