mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 23:01:05 +00:00
fix: sort interactive cd candidates case-insensitively so short exact matches match first (#4066)
This commit is contained in:
parent
0daa5df644
commit
ef5db6e257
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ impl Actor for Trigger {
|
||||||
|
|
||||||
if !cache.is_empty() {
|
if !cache.is_empty() {
|
||||||
cache
|
cache
|
||||||
.sort_unstable_by(|a, b| natsort(a.name.encoded_bytes(), b.name.encoded_bytes(), false));
|
.sort_unstable_by(|a, b| natsort(a.name.encoded_bytes(), b.name.encoded_bytes(), true));
|
||||||
CmpProxy::show(CmpOpt { cache, cache_name: parent, word, ticket });
|
CmpProxy::show(CmpOpt { cache, cache_name: parent, word, ticket });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue