mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
fix(completion): place -x flag correctly
This commit is contained in:
parent
c68c9ae281
commit
585e6e33f8
3 changed files with 11 additions and 10 deletions
|
@ -14,7 +14,8 @@ complete -c $command \
|
|||
complete -c $command \
|
||||
-s t \
|
||||
-l title \
|
||||
-d 'Specify a dialog [t]itle'
|
||||
-d 'Specify a dialog [t]itle' \
|
||||
-x
|
||||
|
||||
set subcommands_with_descriptions 'confirm\t"Show a confirmation"' \
|
||||
'checkbox\t"Select multiple values using checkboxes"' \
|
||||
|
@ -63,17 +64,14 @@ set text_condition "__fish_seen_subcommand_from text"
|
|||
complete -c $command \
|
||||
-s m \
|
||||
-d "Enable [m]ultiline input mode" \
|
||||
-n "$text_condition; and not __fish_seen_argument -s n" \
|
||||
-x
|
||||
-n "$text_condition; and not __fish_seen_argument -s n"
|
||||
|
||||
complete -c $command \
|
||||
-s n \
|
||||
-d "Enable [n]umber input mode" \
|
||||
-n "$text_condition; and not __fish_seen_argument -s m" \
|
||||
-x
|
||||
-n "$text_condition; and not __fish_seen_argument -s m"
|
||||
|
||||
complete -c $command \
|
||||
-s p \
|
||||
-d "Enable [p]assword input mode" \
|
||||
-n $text_condition \
|
||||
-x
|
||||
-n $text_condition
|
||||
|
|
|
@ -8,11 +8,13 @@ complete -c $command \
|
|||
|
||||
complete -c $command \
|
||||
-s d \
|
||||
-d 'Specify a [d]escription for a download notification'
|
||||
-d 'Specify a [d]escription for a download notification' \
|
||||
-x
|
||||
|
||||
complete -c $command \
|
||||
-s t \
|
||||
-d 'Specify a [t]itle for a download notification'
|
||||
-d 'Specify a [t]itle for a download notification' \
|
||||
-x
|
||||
|
||||
complete -c $command \
|
||||
-s p \
|
||||
|
|
|
@ -8,4 +8,5 @@ complete -c $command \
|
|||
|
||||
complete -c $command \
|
||||
-s f \
|
||||
-d 'Specify IR carrier [f]requency'
|
||||
-d 'Specify IR carrier [f]requency' \
|
||||
-x
|
||||
|
|
Loading…
Reference in a new issue