You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'c' and 'C' conflicted, leading to get c getting the C column
Clear out 'complete ' earlier, in tokenize-complete-lines.
Parse and pair flags without values as well.
|where (($it|length) mod2) ==1# currently we only support complete args that all have args (pairs). including 'complete' this means an odd number of tokens
26
-
|each { |tokens| $tokens|pair-args } # turn the tokens into a list of pairs
25
+
|each { |tokens| $tokens|pair-tokens|translate-pairs } # turn the tokens into a list of pairs
27
26
|flatten# merge them all into a top level label
28
27
)
29
28
# default every column in the table to "" to make processing easier
30
29
# some values having null often breaks nu or requires lots of checking
'-C'|'--do-complete'=> { do-complete: ($in.1|unquote) } # try to find all possible completions for the specified string. Otherwise use the current command line.
83
+
'--escape'=> { escape:true } # when used with -C escape special characters
where ($it.n|str contains$subcommand.name) # for subcommand -> any where n matches `__fish_seen_subcommand_from arg` for the subcommand name
137
+
where ($it.condition|str contains$subcommand.name) # for subcommand -> any where n matches `__fish_seen_subcommand_from arg` for the subcommand name
109
138
} else {
110
-
where ($it.n=="__fish_use_subcommand") and ($it.a=="") # for root command -> any where n == __fish_use_subcommand and a is empty. otherwise a means a subcommand
139
+
where ($it.condition=="__fish_use_subcommand") and ($it.arguments=="") # for root command -> any where n == __fish_use_subcommand and a is empty. otherwise a means a subcommand
0 commit comments