__fish_complete_suffix: complete all files, but sort files with matching suffix first

See #7040 and others.
This commit is contained in:
Johannes Altmanninger
2020-12-13 08:27:21 +01:00
parent d18e1c7bca
commit bae75c96d9
3 changed files with 17 additions and 11 deletions

View File

@@ -83,7 +83,7 @@ Functions beginning with the string ``__fish_print_`` print a newline separated
- ``__fish_complete_pids`` prints a list of all processes IDs with the command name as description.
- ``__fish_complete_suffix SUFFIX`` performs file completion allowing only files ending in SUFFIX, with an optional description.
- ``__fish_complete_suffix SUFFIX`` performs file completion but sorts files ending in SUFFIX first. This is useful in conjunction with ``complete --keep-order``.
- ``__fish_complete_users`` prints a list of all users with their full name as description.