mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 05:41:16 -03:00
Fixes #8924 via __fish_complete_suffix overhaul
Before:
* hand write arg parse
* only accepts one suffix
After:
* use `arg_parse` to parse args
* accepts multi suffixes
Closes #9611.
(cherry picked from commit aa65856ee0)
This commit is contained in:
committed by
Mahmoud Al-Qudsi
parent
6ac8d76b2b
commit
22cb03c236
@@ -1,10 +1,5 @@
|
||||
function __fish_complete_docutils -d "Completions for Docutils common options" -a cmd
|
||||
complete -x -c $cmd -k -a "
|
||||
(
|
||||
__fish_complete_suffix .rst
|
||||
__fish_complete_suffix .txt
|
||||
)
|
||||
"
|
||||
complete -x -c $cmd -k -a "(__fish_complete_suffix .rst .txt)"
|
||||
|
||||
# General Docutils Options
|
||||
complete -c $cmd -l title -d "Specify the docs title"
|
||||
|
||||
Reference in New Issue
Block a user