diff options
| author | Frank Hamand <frankhamand@gmail.com> | 2025-08-04 17:07:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-04 15:07:25 +0000 |
| commit | 3cf4ff82a65e328fa80c561d594df6632572c698 (patch) | |
| tree | 5aa4d63bdec6568223b4a127d38d09e9fd345f59 /Cargo.lock | |
| parent | fix: match logic of theme directory with settings directory, so ATUIN_CONFIG_... (diff) | |
| download | atuin-3cf4ff82a65e328fa80c561d594df6632572c698.zip | |
feat: highlight matches in interactive search (#2653)
* feat: highlight matches in interactive search
uses `norm` to do fzf-compatible matches when rendering history items
in the search panel to highlight the matching ranges of the item
this helps see _why_ certain history items have come up
note that this will never be 100% perfect as we search on a sqlite query
but it should be good enough in most cases
* fmt
* fix some clippy issues
* refactor to pass in a history_highlighter instead of search and engine
* improve the highlighting on the selected row
---------
Co-authored-by: Ellie Huxtable <ellie@atuin.sh>
Diffstat (limited to 'Cargo.lock')
| -rw-r--r-- | Cargo.lock | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -249,6 +249,7 @@ dependencies = [ "interim", "itertools 0.13.0", "log", + "norm", "ratatui", "regex", "rpassword", @@ -2657,6 +2658,15 @@ dependencies = [ ] [[package]] +name = "norm" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed5725a3379c44dc0adf3437af87cf21c10df473ed858d654b12603dea102508" +dependencies = [ + "memchr", +] + +[[package]] name = "ntapi" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" |
