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

@@ -1,5 +1,5 @@
function __fish_complete_docutils -d "Completions for Docutils common options" -a cmd
complete -x -c $cmd -a "
complete -x -c $cmd -k -a "
(
__fish_complete_suffix .rst
__fish_complete_suffix .txt