mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 08:58:01 +00:00
6e525cc5d9
Before this change, - was sorted with other punctuation before A-Z. Now, it sorts above the rest of the characters. This has a practical effect on completions, where when there are both -s and --long with the same description, the short option is now before the long option in the pager, which is what is now selected when navigating `foo -<TAB>`. The long options can be picked out with `foo --<TAB>`. Before, short options which duplicated a long option literally could not be selected by any means from the pager. Fixes #5634
16 lines
485 B
Text
16 lines
485 B
Text
# __fish_complete_directories test/z
|
|
# __fish_complete_directories test/d
|
|
test/data/ Directory
|
|
# __fish_complete_directories test/data
|
|
test/data/ Directory
|
|
# __fish_complete_directories test/data/
|
|
test/data/abc/ Directory
|
|
test/data/abcd/ Directory
|
|
test/data/fish/ Directory
|
|
test/data/fish-symlink/ Directory
|
|
test/data/fish-symlink2/ Directory
|
|
test/data/xy/ Directory
|
|
test/data/xyz/ Directory
|
|
# __fish_complete_directories test/data/abc
|
|
test/data/abc/ abc dirs
|
|
test/data/abcd/ abc dirs
|