mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 04:39:39 +08:00

Some checks are pending
make test / ubuntu (push) Waiting to run
make test / ubuntu-32bit-static-pcre2 (push) Waiting to run
make test / ubuntu-asan (push) Waiting to run
make test / macos (push) Waiting to run
Rust checks / rustfmt (push) Waiting to run
Rust checks / clippy (push) Waiting to run
A side effect of cd9e50c2c (completions/set: Complete variables of all scopes when setting, 2024-10-03) is that HOME=$(mktemp -d) fish fish_config choose ayu\ Light set -S fish_color_ gives only completions that have the "Universal variable" description even though most colors are also defined in the global scope which usually takes precedence. Fix this by reordering the completions. (The last-added completion is shown first which is very surprising, we should change that). This is not perfect; if the user has already specified `-U`, then we should probably not show description of the global version. But that's still worth the trade that this commit makes. Finally, the description could show something like "Defined in universal and global scope" etc.