,z: keep zoxide's ranking and match exactly
fzf re-ranks its input by fuzzy match score, so typing a fragment could
float a rarely-visited directory above a frequent one. --no-sort keeps
zoxide query's frecency order, matching what the z() function in .zshrc
already does.

Assisted-by: Claude Opus 5 via Claude Code
change pqvmsnnrzsqwxltplpvzpxqwonsvxwrr
commit 4821bd02a716372f8086a0b82bb53d3ac5bf27bb
author Alpha Chen <alpha@kejadlen.dev>
date
parent zrnwoxww
diff --git a/bin/,z b/bin/,z
index 4fa962a3..aeea0abd 100755
--- a/bin/,z
+++ b/bin/,z
@@ -16,8 +16,12 @@ main() {
     # ${arr[@]+"${arr[@]}"} splices the array only when it has elements. A bare
     # "${tmux_opts[@]}" would abort under `set -u` on the empty (IN_TMUX_FLOAT)
     # path, because macOS bash 3.2 counts an empty array as an unbound variable.
-    dir=$(zoxide query -l "$@" | fzf --no-multi --select-1 --no-margin --no-padding \
+    # --no-sort keeps zoxide's frecency order instead of letting fzf re-rank by
+    # fuzzy match score, so the dirs you actually visit stay near the top.
+    # --exact keeps loose matches out: with frecency ordering, they are just noise.
+    dir=$(zoxide query --list "$@" | fzf --no-multi --select-1 --no-margin --no-padding \
         ${tmux_opts[@]+"${tmux_opts[@]}"} \
+        --no-sort --exact \
         --height 100% \
         --highlight-line --info inline-right \
         --border-label ' zoxide ' \