mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
fix(completion): don't split date format on spaces
This commit is contained in:
parent
05706a86df
commit
47dcc16e35
1 changed files with 5 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
function __fish_termux_api__complete_date_formats
|
||||
printf 'dd-MM-yyyy k:m:s\tdefault'
|
||||
end
|
||||
|
||||
set command termux-dialog
|
||||
|
||||
complete -c $command -f
|
||||
|
@ -32,7 +36,6 @@ set subcommands (string replace --regex '\\\t.+' '' -- $subcommands_with_descrip
|
|||
complete -c $command \
|
||||
-a "$subcommands_with_descriptions" \
|
||||
-n "not __fish_seen_subcommand_from $subcommands" \
|
||||
-f
|
||||
|
||||
complete -c $command \
|
||||
-s i \
|
||||
|
@ -53,7 +56,7 @@ complete -c $command \
|
|||
-x
|
||||
|
||||
complete -c $command \
|
||||
-a '"dd-MM-yyyy k:m:s"\tdefault' \
|
||||
-a '(__fish_termux_api__complete_date_formats)' \
|
||||
-s d \
|
||||
-d "Specify a [d]ate format" \
|
||||
-n "__fish_seen_subcommand_from date" \
|
||||
|
|
Loading…
Reference in a new issue