Skip to content
Myr

_rg: add missing groups

Before adoption: this commit came in with the history the project adopted, so no landing records it.

i think these options didn't have their own groups because originally there weren't --no-* variants for them. now there are, and they should be mutually exclusive

authored by dana · committed by Andrew Gallant · parent cdeff3e · Browse files · 1 file+12 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+12 added−6 removed

  • other:+12 added−6 removed

1 file+12 added−6 removed

modified:crates/core/flags/complete/rg.zsh+12 added-6 removed
45 unmodified lines
46 $no"--no-line-buffered[don't force line buffering]"47 '--block-buffered[force block buffering]'48 $no"--no-block-buffered[don't force block buffering]"4950 + '(byte-offset)'51 {-b,--byte-offset}'[show 0-based byte offset for each matching line]'52 $no"--no-byte-offset[don't show byte offset for each matching line]"5354 + '(case)' # Case-sensitivity options55 {-i,--ignore-case}'[search case-insensitively]'56 {-s,--case-sensitive}'[search case-sensitively]'57 {-S,--smart-case}'[search case-insensitively if pattern is all lowercase]'
10 unmodified lines
68 + '(column)' # Column options69 '--column[show column numbers for matches]'70 $no"--no-column[don't show column numbers for matches]"7172 + '(context-separator)'73 '--context-separator=[specify string used to separate non-continuous context lines in output]:separator'74 $no"--no-context-separator[don't print context separators]"7576 + '(count)' # Counting options77 {-c,--count}'[only show count of matching lines for each file]'78 '--count-matches[only show count of individual matches for each file]'79 '--include-zero[include files with zero matches in summary]'
97 unmodified lines
177 + '(ignore-files)' # custom global ignore file options178 "--no-ignore-files[don't respect --ignore-file flags]"179 $no'--ignore-files[respect --ignore-file files]'180181 + '(invert-match)'182 {-v,--invert-match}'[invert matching]'183 $no"--no-invert-match[do not invert matching]"184185 + '(json)' # JSON options186 '--json[output results in JSON Lines format]'187 $no"--no-json[don't output results in JSON Lines format]"188
122 unmodified lines
311 '(--pre)'{-z,--search-zip}'[search in compressed files]'312 $no"--no-search-zip[don't search in compressed files]"313314 + misc # Other options — no need to separate these at the moment303 '(-b --byte-offset)'{-b,--byte-offset}'[show 0-based byte offset for each matching line]'304 $no"--no-byte-offset[don't show byte offsets for each matching line]"315 '--color=[specify when to use colors in output]:when:((316 never\:"never use colors"317 auto\:"use colors or not based on stdout, TERM, etc."318 always\:"always use colors"319 ansi\:"always use ANSI colors (even on Windows)"320 ))'321 '*--colors=[specify color and style settings]: :->colorspec'312 '--context-separator=[specify string used to separate non-continuous context lines in output]:separator'313 $no"--no-context-separator[don't print context separators]"322 '--debug[show debug messages]'323 '--field-context-separator[set string to delimit fields in context lines]'324 '--field-match-separator[set string to delimit fields in matching lines]'325 '--hostname-bin=[executable for getting system hostname]:hostname executable:_command_names -e'
1 unmodified line
327 '--trace[show more verbose debug messages]'328 '--dfa-size-limit=[specify upper size limit of generated DFA]:DFA size (bytes)'329 "(1 stats)--files[show each file that would be searched (but don't search)]"330 '*--ignore-file=[specify additional ignore file]:ignore file:_files'323 '(-v --invert-match)'{-v,--invert-match}'[invert matching]'324 $no"--no-invert-match[do not invert matching]"331 '(-M --max-columns)'{-M+,--max-columns=}'[specify max length of lines to print]:number of bytes'332 '(-m --max-count)'{-m+,--max-count=}'[specify max number of matches per file]:number of matches'333 '--max-filesize=[specify size above which files should be ignored]:file size (bytes)'334 "--no-config[don't load configuration files]"
355 unmodified lines