ddworken / hishtory

Your shell history: synced, queryable, and in context
https://hishtory.dev
MIT License
2.46k stars 45 forks source link

Ranked search results and fuzzy matching #158

Open ddworken opened 8 months ago

ddworken commented 8 months ago

Currently, hiSHtory searches are always returned sorted by timestamp of when they ran. As @mustafa0x pointed out here, it may be interesting to instead return commands ranked by their relevance (similar to how fzf works). This could make it so that a search for for i in returns a command like for i in 5 above foobar -i for tin.