atuin/atuin-client
Patrick fae118a46b
Improve fuzzy search (#279)
* Add SearchMode fzf.

Add a new search mode "fzf" that tries to mimic the search syntax of
https://github.com/junegunn/fzf#search-syntax
This search mode splits the query into terms where each term is matched
individually. Terms can have operators like prefix, suffix, exact match
only and can be inverted. Additionally, smart-case matching is
performed: if a term contains a non-lowercase letter the match will be
case-sensitive.

* PR feedback.

 - Use SearchMode::Fuzzy instead of SearchMode::Fzf
 - update docs
 - re-order tests so previous fuzzy tests come first, add more tests for each operator

* PR comments: remove named arguments, match expression

* PR comments: macro -> async func
2022-03-18 11:37:27 +00:00
..
migrations Revert to storing history as nanos 2021-04-25 21:27:51 +01:00
src Improve fuzzy search (#279) 2022-03-18 11:37:27 +00:00
Cargo.toml Improve fuzzy search (#279) 2022-03-18 11:37:27 +00:00
config.toml Add fuzzy text search mode (#142) 2021-06-01 08:38:19 +01:00