Use complete --keep-order with __fish_complete_suffix to prioritize files with matching suffixes

Part of #7040
This commit is contained in:
Johannes Altmanninger
2020-12-13 08:27:21 +01:00
parent bae75c96d9
commit 4dae106911
66 changed files with 106 additions and 105 deletions

View File

@@ -20,4 +20,4 @@ complete -c fish -s f -l features -d "Run with comma-separated feature flags ena
complete -c fish -l print-rusage-self -d "Print stats from getrusage at exit" -f
complete -c fish -l print-debug-categories -d "Print the debug categories fish knows" -f
complete -c fish -x -a "(__fish_complete_suffix .fish)"
complete -c fish -k -x -a "(__fish_complete_suffix .fish)"