alfred-chrome-history
alfred-chrome-history copied to clipboard
More fuzzy searching
Instead of using LIKE
, use some sort of better fuzzy search like sqlite's full text or fzf.
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?
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.
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(' ')))