Skip to content
Myr

_rg: eliminate superfluous group comments

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

these weren't really necessary, it's self-evident what the groups are for. rather than add more superfluous comments for the groups added in my previous commit, we can just get rid of them

authored by dana · committed by Andrew Gallant · parent 365edbf · Browse files · 1 file+60 added−60 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+60 added−60 removed

  • other:+60 added−60 removed

1 file+60 added−60 removed

modified:crates/core/flags/complete/rg.zsh+60 added-60 removed
34 unmodified lines
35 no=36 fi3738 args=(39 + '(exclusive)' # Misc. fully exclusive options39 + '(exclusive)'40 '(: * -)'{-h,--help}'[display help information]'41 '(: * -)'{-V,--version}'[display version information]'42 '(: * -)'--pcre2-version'[print the version of PCRE2 used by ripgrep, if available]'4344 + '(buffered)' # buffering options44 + '(buffered)'45 '--line-buffered[force line buffering]'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]"
1 unmodified line
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]"5354 + '(case)' # Case-sensitivity options54 + '(case)'55 {-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]'5859 + '(context-a)' # Context (after) options59 + '(context-a)'60 '(context-c)'{-A+,--after-context=}'[specify lines to show after each match]:number of lines'6162 + '(context-b)' # Context (before) options62 + '(context-b)'63 '(context-c)'{-B+,--before-context=}'[specify lines to show before each match]:number of lines'6465 + '(context-c)' # Context (combined) options65 + '(context-c)'66 '(context-a context-b)'{-C+,--context=}'[specify lines to show before and after each match]:number of lines'6768 + '(column)' # Column options68 + '(column)'69 '--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 options76 + '(count)'77 {-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]'80 $no"--no-include-zero[don't include files with zero matches in summary]"8182 + '(encoding)' # Encoding options82 + '(encoding)'83 {-E+,--encoding=}'[specify text encoding of files to search]: :_rg_encodings'84 $no'--no-encoding[use default text encoding]'8586 + '(engine)' # Engine choice options86 + '(engine)'87 '--engine=[specify regex engine to use]:regex engine:((88 default\:"default engine"89 pcre2\:"identical to --pcre2"90 auto\:"identical to --auto-hybrid-regex"91 ))'9293 + file # File-input options93 + file94 '(1)*'{-f+,--file=}'[specify file containing patterns to search for]: :_files'9596 + '(file-match)' # Files with/without match options96 + '(file-match)'97 '(stats)'{-l,--files-with-matches}'[only show names of files with matches]'98 '(stats)--files-without-match[only show names of files without matches]'99100 + '(file-name)' # File-name options100 + '(file-name)'101 {-H,--with-filename}'[show file name for matches]'102 {-I,--no-filename}"[don't show file name for matches]"103104 + '(file-system)' # File system options104 + '(file-system)'105 "--one-file-system[don't descend into directories on other file systems]"106 $no'--no-one-file-system[descend into directories on other file systems]'107108 + '(fixed)' # Fixed-string options108 + '(fixed)'109 {-F,--fixed-strings}'[treat pattern as literal string instead of regular expression]'110 $no"--no-fixed-strings[don't treat pattern as literal string]"111112 + '(follow)' # Symlink-following options112 + '(follow)'113 {-L,--follow}'[follow symlinks]'114 $no"--no-follow[don't follow symlinks]"115116 + glob # File-glob options116 + glob117 '*'{-g+,--glob=}'[include/exclude files matching specified glob]:glob pattern:_files'118 '*--iglob=[include/exclude files matching specified case-insensitive glob]:glob pattern:_files'119120 + '(glob-case-insensitive)' # File-glob case sensitivity options120 + '(glob-case-insensitive)'121 '--glob-case-insensitive[treat -g/--glob patterns case insensitively]'122 $no'--no-glob-case-insensitive[treat -g/--glob patterns case sensitively]'123124 + '(heading)' # Heading options124 + '(heading)'125 '(pretty-vimgrep)--heading[show matches grouped by file name]'126 "(pretty-vimgrep)--no-heading[don't show matches grouped by file name]"127128 + '(hidden)' # Hidden-file options128 + '(hidden)'129 {-.,--hidden}'[search hidden files and directories]'130 $no"--no-hidden[don't search hidden files and directories]"131132 + '(hybrid)' # hybrid regex options132 + '(hybrid)'133 '--auto-hybrid-regex[DEPRECATED: dynamically use PCRE2 if necessary]'134 $no"--no-auto-hybrid-regex[DEPRECATED: don't dynamically use PCRE2 if necessary]"135136 + '(ignore)' # Ignore-file options136 + '(ignore)'137 "(--no-ignore-global --no-ignore-parent --no-ignore-vcs --no-ignore-dot)--no-ignore[don't respect ignore files]"138 $no'(--ignore-global --ignore-parent --ignore-vcs --ignore-dot)--ignore[respect ignore files]'139140 + '(ignore-file-case-insensitive)' # Ignore-file case sensitivity options140 + '(ignore-file-case-insensitive)'141 '--ignore-file-case-insensitive[process ignore files case insensitively]'142 $no'--no-ignore-file-case-insensitive[process ignore files case sensitively]'143144 + '(ignore-exclude)' # Local exclude (ignore)-file options144 + '(ignore-exclude)'145 "--no-ignore-exclude[don't respect local exclude (ignore) files]"146 $no'--ignore-exclude[respect local exclude (ignore) files]'147148 + '(ignore-global)' # Global ignore-file options148 + '(ignore-global)'149 "--no-ignore-global[don't respect global ignore files]"150 $no'--ignore-global[respect global ignore files]'151152 + '(ignore-parent)' # Parent ignore-file options152 + '(ignore-parent)'153 "--no-ignore-parent[don't respect ignore files in parent directories]"154 $no'--ignore-parent[respect ignore files in parent directories]'155156 + '(ignore-vcs)' # VCS ignore-file options156 + '(ignore-vcs)'157 "--no-ignore-vcs[don't respect version control ignore files]"158 $no'--ignore-vcs[respect version control ignore files]'159160 + '(require-git)' # git specific settings160 + '(require-git)'161 "--no-require-git[don't require git repository to respect gitignore rules]"162 $no'--require-git[require git repository to respect gitignore rules]'163164 + '(ignore-dot)' # .ignore options164 + '(ignore-dot)'165 "--no-ignore-dot[don't respect .ignore files]"166 $no'--ignore-dot[respect .ignore files]'167168 + '(ignore-files)' # custom global ignore file options168 + '(ignore-files)'169 "--no-ignore-files[don't respect --ignore-file flags]"170 $no'--ignore-files[respect --ignore-file files]'171172 + '(invert-match)'173 {-v,--invert-match}'[invert matching]'174 $no"--no-invert-match[don't invert matching]"175176 + '(json)' # JSON options176 + '(json)'177 '--json[output results in JSON Lines format]'178 $no"--no-json[don't output results in JSON Lines format]"179180 + '(line-number)' # Line-number options180 + '(line-number)'181 {-n,--line-number}'[show line numbers for matches]'182 {-N,--no-line-number}"[don't show line numbers for matches]"183184 + '(line-terminator)' # Line-terminator options184 + '(line-terminator)'185 '--crlf[use CRLF as line terminator]'186 $no"--no-crlf[don't use CRLF as line terminator]"187 '(text)--null-data[use NUL as line terminator]'188189 + '(max-columns-preview)' # max column preview options189 + '(max-columns-preview)'190 '--max-columns-preview[show preview for long lines (with -M)]'191 $no"--no-max-columns-preview[don't show preview for long lines (with -M)]"192193 + '(max-depth)' # Directory-depth options193 + '(max-depth)'194 {-d,--max-depth}'[specify max number of directories to descend]:number of directories'195 '!--maxdepth=:number of directories'196197 + '(messages)' # Error-message options197 + '(messages)'198 '(--no-ignore-messages)--no-messages[suppress some error messages]'199 $no"--messages[don't suppress error messages affected by --no-messages]"200201 + '(messages-ignore)' # Ignore-error message options201 + '(messages-ignore)'202 "--no-ignore-messages[don't show ignore-file parse error messages]"203 $no'--ignore-messages[show ignore-file parse error messages]'204205 + '(mmap)' # mmap options205 + '(mmap)'206 '--mmap[search using memory maps when possible]'207 "--no-mmap[don't search using memory maps]"208209 + '(multiline)' # Multiline options209 + '(multiline)'210 {-U,--multiline}'[permit matching across multiple lines]'211 $no'(multiline-dotall)--no-multiline[restrict matches to at most one line each]'212213 + '(multiline-dotall)' # Multiline DOTALL options213 + '(multiline-dotall)'214 '(--no-multiline)--multiline-dotall[allow "." to match newline (with -U)]'215 $no"(--no-multiline)--no-multiline-dotall[don't allow \".\" to match newline (with -U)]"216217 + '(only)' # Only-match options217 + '(only)'218 {-o,--only-matching}'[show only matching part of each line]'219220 + '(passthru)' # Pass-through options220 + '(passthru)'221 '(--vimgrep)--passthru[show both matching and non-matching lines]'222 '!(--vimgrep)--passthrough'223224 + '(pcre2)' # PCRE2 options224 + '(pcre2)'225 {-P,--pcre2}'[enable matching with PCRE2]'226 $no'(pcre2-unicode)--no-pcre2[disable matching with PCRE2]'227228 + '(pcre2-unicode)' # PCRE2 Unicode options228 + '(pcre2-unicode)'229 $no'(--no-pcre2 --no-pcre2-unicode)--pcre2-unicode[DEPRECATED: enable PCRE2 Unicode mode (with -P)]'230 '(--no-pcre2 --pcre2-unicode)--no-pcre2-unicode[DEPRECATED: disable PCRE2 Unicode mode (with -P)]'231232 + '(pre)' # Preprocessing options232 + '(pre)'233 '(-z --search-zip)--pre=[specify preprocessor utility]:preprocessor utility:_command_names -e'234 $no'--no-pre[disable preprocessor utility]'235236 + '(pretty-vimgrep)' # Pretty/vimgrep display options236 + '(pretty-vimgrep)'237 '(heading)'{-p,--pretty}'[alias for --color=always --heading -n]'238 '(heading passthru)--vimgrep[show results in vim-compatible format]'239240 + regexp # Explicit pattern options240 + regexp241 '(1 file)*'{-e+,--regexp=}'[specify search pattern]:pattern'242243 + '(replace)' # Replacement options243 + '(replace)'244 {-r+,--replace=}'[specify string used to replace matches]:replace string'245246 + '(sort)' # File-sorting options246 + '(sort)'247 '(threads)--sort=[sort results in ascending order (disables parallelism)]:sort method:((248 none\:"no sorting"249 path\:"sort by file path"250 modified\:"sort by last modified time"
9 unmodified lines
260 ))'261 '(threads)--sort-files[DEPRECATED: sort results by file path (disables parallelism)]'262 $no"--no-sort-files[DEPRECATED: don't sort results]"263264 + '(stats)' # Statistics options264 + '(stats)'265 '(--files file-match)--stats[show search statistics]'266 $no"--no-stats[don't show search statistics]"267268 + '(text)' # Binary-search options268 + '(text)'269 {-a,--text}'[search binary files as if they were text]'270 "--binary[search binary files, don't print binary data]"271 $no"--no-binary[don't search binary files]"272 $no"(--null-data)--no-text[don't search binary files as if they were text]"273274 + '(threads)' # Thread-count options274 + '(threads)'275 '(sort)'{-j+,--threads=}'[specify approximate number of threads to use]:number of threads'276277 + '(trim)' # Trim options277 + '(trim)'278 '--trim[trim any ASCII whitespace prefix from each line]'279 $no"--no-trim[don't trim ASCII whitespace prefix from each line]"280281 + type # Type options281 + type282 '*'{-t+,--type=}'[only search files matching specified type]: :_rg_types'283 '*--type-add=[add new glob for specified file type]: :->typespec'284 '*--type-clear=[clear globs previously defined for specified file type]: :_rg_types'285 # This should actually be exclusive with everything but other type options286 '(: *)--type-list[show all supported file types and their associated globs]'287 '*'{-T+,--type-not=}"[don't search files matching specified file type]: :_rg_types"288289 + '(word-line)' # Whole-word/line match options289 + '(word-line)'290 {-w,--word-regexp}'[only show matches surrounded by word boundaries]'291 {-x,--line-regexp}'[only show matches surrounded by line boundaries]'292293 + '(unicode)' # Unicode options293 + '(unicode)'294 $no'--unicode[enable Unicode mode]'295 '--no-unicode[disable Unicode mode]'296297 + '(zip)' # Compression options297 + '(zip)'298 '(--pre)'{-z,--search-zip}'[search in compressed files]'299 $no"--no-search-zip[don't search in compressed files]"300301 + misc # Other options — no need to separate these at the moment301 + misc302 '--color=[specify when to use colors in output]:when to use colors:((303 never\:"never use colors"304 auto\:"use colors or not based on stdout, TERM, etc."305 always\:"always use colors"
27 unmodified lines
333 '--regex-size-limit=[specify upper size limit of compiled regex]:regex size (bytes)'334 '*'{-u,--unrestricted}'[reduce level of "smart" searching]'335 '--stop-on-nonmatch[stop on first non-matching line after a matching one]'336337 + operand # Operands337 + operand338 '(--files --type-list file regexp)1: :_guard "^-*" "search pattern"'339 '(--type-list)*: :_files'339 '(--type-list)*:file or directory to search:_files'340 )341342 # This is used with test-complete to verify that there are no options343 # listed in the help output that aren't also defined here
341 unmodified lines