From 47dcc16e357f42647258502a4789dfd5a0b09118 Mon Sep 17 00:00:00 2001 From: EmilyGraceSeville7cf Date: Sun, 15 Sep 2024 09:13:04 +1000 Subject: [PATCH] fix(completion): don't split date format on spaces --- share/completions/termux-dialog.fish | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/share/completions/termux-dialog.fish b/share/completions/termux-dialog.fish index 74fbbcfd7..8c2dcdb38 100644 --- a/share/completions/termux-dialog.fish +++ b/share/completions/termux-dialog.fish @@ -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" \