_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
Provenance
- Commit
640ad85- Tree
c80c90e- Author
dana <dana@dana.is>- Committer
Andrew Gallant <jamslam@gmail.com>- Parent
cdeff3e
1 file changed+12 added−6 removed
modified:crates/core/flags/complete/rg.zsh+12 added-6 removed
45 unmodified lines46 $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]"49 50+ + '(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]"53+54 + '(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 lines68 + '(column)' # Column options69 '--column[show column numbers for matches]'70 $no"--no-column[don't show column numbers for matches]"71 72+ + '(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]"75+76 + '(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 lines177 + '(ignore-files)' # custom global ignore file options178 "--no-ignore-files[don't respect --ignore-file flags]"179 $no'--ignore-files[respect --ignore-file files]'180 181+ + '(invert-match)'182+ {-v,--invert-match}'[invert matching]'183+ $no"--no-invert-match[do not invert matching]"184+185 + '(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 lines311 '(--pre)'{-z,--search-zip}'[search in compressed files]'312 $no"--no-search-zip[don't search in compressed files]"313 314 + 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 line327 '--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