1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2024-12-12 19:18:24 +02:00
ripgrep/crates
Jan Verbeek 8575d26179 complete/fish: Fix syntax for negated options
And also, negated options don't take arguments.

Specifically, the fish completion generator currently forgets to add
`-l` to negation options, leading to a list of these errors:

    complete: too many arguments

    ~/.config/fish/completions/rg.fish (line 146):
    complete -c rg -n '__fish_use_subcommand'  no-sort-files -d '(DEPRECATED) Sort results by file path.'
    ^
    from sourcing file ~/.config/fish/completions/rg.fish

    (Type 'help complete' for related documentation)

To reproduce, run `fish -c 'rg --generate=complete-fish | source'`.

It also potentially suggests a list of choices for negation options,
even though those never take arguments. That case doesn't occur with
any of the current options but it's an easy fix.

Fixes #2659, Closes #2655
2023-11-27 21:17:12 -05:00
..
cli grep-cli-0.1.10 2023-11-26 14:13:03 -05:00
core complete/fish: Fix syntax for negated options 2023-11-27 21:17:12 -05:00
globset globset-0.4.14 2023-11-26 14:11:05 -05:00
grep grep-0.3.0 2023-11-26 15:24:09 -05:00
ignore ignore-0.4.21 2023-11-26 14:12:16 -05:00
matcher grep-matcher-0.1.7 2023-11-26 14:13:54 -05:00
pcre2 grep-pcre2-0.1.7 2023-11-26 14:16:46 -05:00
printer grep-printer-0.2.0 2023-11-26 15:21:40 -05:00
regex grep-regex-0.1.12 2023-11-26 14:15:44 -05:00
searcher grep-searcher-0.1.12 2023-11-26 14:17:26 -05:00