diff --git a/share/completions/bat.fish b/share/completions/bat.fish deleted file mode 100644 index e3bf1e58b..000000000 --- a/share/completions/bat.fish +++ /dev/null @@ -1,88 +0,0 @@ -# Generated by hand against bat 0.12.0. -# bat is at . - -# TODO: Have --map-syntax properly suggest from- and to-languages. -# NOTE: The completion for --style won’t help the user write anything in the comma-separated-list form. - -function __bat_complete_languages_and_extensions -d 'All languages and their filenames/extensions, one per line' - command bat --list-languages | string split : | string split , -end - -function __bat_complete_language_extensions -d 'All language extensions/names, one per line' - command bat --list-languages | cut -d : -f 2 | string split , -end - -function __bat_complete_themes -d 'All themes, one per line' - command bat --list-themes -end - -set -l style_opts ' - auto\tdefault - full\t - plain\t - changes\t - header\t - grid\t - numbers\t -' - -set -l color_opts ' - auto\tdefault - never\t - always\t -' - -set -l italic_text_opts ' - always\t - never\tdefault -' - -set -l decorations_opts "$color_opts" -set -l paging_opts "$color_opts" - -set -l wrap_opts ' - auto\tdefault - never\t - character\t -' - -# While --tabs theoretically takes any number, most people should be OK with these. Specifying a list lets me explain what 0 does. -set -l tabs_opts ' - 0\tpasses tabs through directly - 1\t - 2\t - 4\t - 8\t -' - -complete -c bat -n 'not __fish_seen_subcommand_from cache' -x -s l -l language -a '(__bat_complete_languages_and_extensions)' -d 'Set language for syntax highlighting' -complete -c bat -n 'not __fish_seen_subcommand_from cache' -f -s L -l list-languages -d 'List supported languages for syntax highlighting' -complete -c bat -n 'not __fish_seen_subcommand_from cache' -x -s m -l map-syntax -d 'Map file name/extension to existing syntax' -complete -c bat -n 'not __fish_seen_subcommand_from cache' -x -l theme -a '(__bat_complete_themes)' -d 'Set theme for syntax highlighting' -complete -c bat -n 'not __fish_seen_subcommand_from cache' -f -l list-themes -d 'List syntax-highlighting themes' -complete -c bat -n 'not __fish_seen_subcommand_from cache' -x -l style -a "$style_opts" -d 'Choose what to add to the file contents' -complete -c bat -n 'not __fish_seen_subcommand_from cache' -s p -l plain -d 'Show no decorations; -pp disables paging too' -complete -c bat -n 'not __fish_seen_subcommand_from cache' -s n -l number -d 'Only show line numbers and no other decorations' -complete -c bat -n 'not __fish_seen_subcommand_from cache' -s A -l show-all -d 'Show non-printable characters' -complete -c bat -n 'not __fish_seen_subcommand_from cache' -x -s r -l line-range -d 'Only print lines from [M]:[N] (either optional)' -complete -c bat -n 'not __fish_seen_subcommand_from cache' -x -s H -l highlight-line -d 'Highlight the given line' -complete -c bat -n 'not __fish_seen_subcommand_from cache' -x -l color -ka "$color_opts" -d 'Specify when to use colors' -complete -c bat -n 'not __fish_seen_subcommand_from cache' -x -l italic-text -ka "$italic_text_opts" -d 'Specify when to use ANSI italic-text sequences' -complete -c bat -n 'not __fish_seen_subcommand_from cache' -x -l decorations -ka "$decorations_opts" -d 'Specify when to use --style decorations' -complete -c bat -n 'not __fish_seen_subcommand_from cache' -x -l paging -ka "$paging_opts" -d 'Specify when to use a pager' -complete -c bat -n 'not __fish_seen_subcommand_from cache' -x -l pager -d 'Specify what pager to use' -complete -c bat -n 'not __fish_seen_subcommand_from cache' -x -l wrap -ka "$wrap_opts" -d 'Specify text-wrapping mode' -complete -c bat -n 'not __fish_seen_subcommand_from cache' -x -l tabs -a "$tabs_opts" -d 'Sets tab width to N spaces' -# Don’t suggest the always-ignored added-only-for-POSIX-compliance -u/--unbuffered. Output is always unbuffered. -complete -c bat -n 'not __fish_seen_subcommand_from cache' -x -l terminal-width -d 'Explicitly set terminal width, optionally prefixed with +/-' -complete -c bat -n 'not __fish_seen_subcommand_from cache' -s h -l help -d 'Print help' -complete -c bat -n 'not __fish_seen_subcommand_from cache' -s V -l version -d 'Show version information' - -# cache things -complete -c bat -n '__fish_use_subcommand' -a cache -d 'Manage syntax-definition and theme cache' -complete -c bat -n '__fish_seen_subcommand_from cache' -f -s b -l build -d 'Initialize/update cache from the source directory' -complete -c bat -n '__fish_seen_subcommand_from cache' -f -s c -l clear -d 'Remove cached definitions and themes' -complete -c bat -n '__fish_seen_subcommand_from cache' -r -l source -d 'Specify directory to load syntaxes/themes from' -complete -c bat -n '__fish_seen_subcommand_from cache' -r -l target -d 'Specify directory to store cached syntaxes/themes' -complete -c bat -n '__fish_seen_subcommand_from cache' -f -l blank -d 'Create completely new syntax/theme sets instead of appending to the defaults' -complete -c bat -n '__fish_seen_subcommand_from cache' -f -s h -l help -d 'Print help about cache management' diff --git a/share/completions/rg.fish b/share/completions/rg.fish deleted file mode 100644 index 1077752e2..000000000 --- a/share/completions/rg.fish +++ /dev/null @@ -1,117 +0,0 @@ -# The following ripgrep (rg) completions were generated from the rg sources via -# clap's completion file generator, from the MIT-licensed ripgrep 0.10.0 release. -# To avoid licensing confusion, this file is released under the MIT license. - -complete -c rg -n "__fish_use_subcommand" -s A -l after-context -d 'Show NUM lines after each match.' -complete -c rg -n "__fish_use_subcommand" -s B -l before-context -d 'Show NUM lines before each match.' -complete -c rg -n "__fish_use_subcommand" -l color -d 'Controls when to use color.' -r -f -a "never auto always ansi" -complete -c rg -n "__fish_use_subcommand" -l colors -d 'Configure color settings and styles.' -complete -c rg -n "__fish_use_subcommand" -s C -l context -d 'Show NUM lines before and after each match.' -complete -c rg -n "__fish_use_subcommand" -l context-separator -d 'Set the context separator string.' -complete -c rg -n "__fish_use_subcommand" -l dfa-size-limit -d 'The upper size limit of the regex DFA.' -complete -c rg -n "__fish_use_subcommand" -s E -l encoding -d 'Specify the text encoding of files to search.' -complete -c rg -n "__fish_use_subcommand" -s f -l file -d 'Search for patterns from the given file.' -complete -c rg -n "__fish_use_subcommand" -s g -l glob -d 'Include or exclude files.' -complete -c rg -n "__fish_use_subcommand" -l iglob -d 'Include or exclude files case insensitively.' -complete -c rg -n "__fish_use_subcommand" -l ignore-file -d 'Specify additional ignore files.' -complete -c rg -n "__fish_use_subcommand" -s M -l max-columns -d 'Don\'t print lines longer than this limit.' -complete -c rg -n "__fish_use_subcommand" -s m -l max-count -d 'Limit the number of matches.' -complete -c rg -n "__fish_use_subcommand" -l max-depth -d 'Descend at most NUM directories.' -complete -c rg -n "__fish_use_subcommand" -l max-filesize -d 'Ignore files larger than NUM in size.' -complete -c rg -n "__fish_use_subcommand" -l path-separator -d 'Set the path separator.' -complete -c rg -n "__fish_use_subcommand" -l pre -d 'search outputs of COMMAND FILE for each FILE' -complete -c rg -n "__fish_use_subcommand" -l pre-glob -d 'Include or exclude files from a preprocessing command.' -complete -c rg -n "__fish_use_subcommand" -l regex-size-limit -d 'The upper size limit of the compiled regex.' -complete -c rg -n "__fish_use_subcommand" -s e -l regexp -d 'A pattern to search for.' -complete -c rg -n "__fish_use_subcommand" -s r -l replace -d 'Replace matches with the given text.' -complete -c rg -n "__fish_use_subcommand" -l sort -d 'Sort results in ascending order. Implies --threads=1.' -r -f -a "path modified accessed created none" -complete -c rg -n "__fish_use_subcommand" -l sortr -d 'Sort results in descending order. Implies --threads=1.' -r -f -a "path modified accessed created none" -complete -c rg -n "__fish_use_subcommand" -s j -l threads -d 'The approximate number of threads to use.' -complete -c rg -n "__fish_use_subcommand" -s t -l type -d 'Only search files matching TYPE.' -complete -c rg -n "__fish_use_subcommand" -l type-add -d 'Add a new glob for a file type.' -complete -c rg -n "__fish_use_subcommand" -l type-clear -d 'Clear globs for a file type.' -complete -c rg -n "__fish_use_subcommand" -s T -l type-not -d 'Do not search files matching TYPE.' -complete -c rg -n "__fish_use_subcommand" -l block-buffered -d 'Force block buffering.' -complete -c rg -n "__fish_use_subcommand" -l no-block-buffered -complete -c rg -n "__fish_use_subcommand" -s b -l byte-offset -d 'Print the 0-based byte offset for each matching line.' -complete -c rg -n "__fish_use_subcommand" -s s -l case-sensitive -d 'Search case sensitively (default).' -complete -c rg -n "__fish_use_subcommand" -l column -d 'Show column numbers.' -complete -c rg -n "__fish_use_subcommand" -l no-column -complete -c rg -n "__fish_use_subcommand" -s c -l count -d 'Only show the count of matching lines for each file.' -complete -c rg -n "__fish_use_subcommand" -l count-matches -d 'Only show the count of individual matches for each file.' -complete -c rg -n "__fish_use_subcommand" -l crlf -d 'Support CRLF line terminators (useful on Windows).' -complete -c rg -n "__fish_use_subcommand" -l no-crlf -complete -c rg -n "__fish_use_subcommand" -l debug -d 'Show debug messages.' -complete -c rg -n "__fish_use_subcommand" -l trace -complete -c rg -n "__fish_use_subcommand" -l no-encoding -complete -c rg -n "__fish_use_subcommand" -l files -d 'Print each file that would be searched.' -complete -c rg -n "__fish_use_subcommand" -s l -l files-with-matches -d 'Only print the paths with at least one match.' -complete -c rg -n "__fish_use_subcommand" -l files-without-match -d 'Only print the paths that contain zero matches.' -complete -c rg -n "__fish_use_subcommand" -s F -l fixed-strings -d 'Treat the pattern as a literal string.' -complete -c rg -n "__fish_use_subcommand" -l no-fixed-strings -complete -c rg -n "__fish_use_subcommand" -s L -l follow -d 'Follow symbolic links.' -complete -c rg -n "__fish_use_subcommand" -l no-follow -complete -c rg -n "__fish_use_subcommand" -l heading -d 'Print matches grouped by each file.' -complete -c rg -n "__fish_use_subcommand" -l no-heading -d 'Don\'t group matches by each file.' -complete -c rg -n "__fish_use_subcommand" -l hidden -d 'Search hidden files and directories.' -complete -c rg -n "__fish_use_subcommand" -l no-hidden -complete -c rg -n "__fish_use_subcommand" -s i -l ignore-case -d 'Case insensitive search.' -complete -c rg -n "__fish_use_subcommand" -s v -l invert-match -d 'Invert matching.' -complete -c rg -n "__fish_use_subcommand" -l json -d 'Show search results in a JSON Lines format.' -complete -c rg -n "__fish_use_subcommand" -l no-json -complete -c rg -n "__fish_use_subcommand" -l line-buffered -d 'Force line buffering.' -complete -c rg -n "__fish_use_subcommand" -l no-line-buffered -complete -c rg -n "__fish_use_subcommand" -s n -l line-number -d 'Show line numbers.' -complete -c rg -n "__fish_use_subcommand" -s N -l no-line-number -d 'Suppress line numbers.' -complete -c rg -n "__fish_use_subcommand" -s x -l line-regexp -d 'Only show matches surrounded by line boundaries.' -complete -c rg -n "__fish_use_subcommand" -l mmap -d 'Search using memory maps when possible.' -complete -c rg -n "__fish_use_subcommand" -l no-mmap -d 'Never use memory maps.' -complete -c rg -n "__fish_use_subcommand" -s U -l multiline -d 'Enable matching across multiple lines.' -complete -c rg -n "__fish_use_subcommand" -l no-multiline -complete -c rg -n "__fish_use_subcommand" -l multiline-dotall -d 'Make \'.\' match new lines when multiline is enabled.' -complete -c rg -n "__fish_use_subcommand" -l no-multiline-dotall -complete -c rg -n "__fish_use_subcommand" -l no-config -d 'Never read configuration files.' -complete -c rg -n "__fish_use_subcommand" -l no-ignore -d 'Don\'t respect ignore files.' -complete -c rg -n "__fish_use_subcommand" -l ignore -complete -c rg -n "__fish_use_subcommand" -l no-ignore-global -d 'Don\'t respect global ignore files.' -complete -c rg -n "__fish_use_subcommand" -l ignore-global -complete -c rg -n "__fish_use_subcommand" -l no-ignore-messages -d 'Suppress gitignore parse error messages.' -complete -c rg -n "__fish_use_subcommand" -l ignore-messages -complete -c rg -n "__fish_use_subcommand" -l no-ignore-parent -d 'Don\'t respect ignore files in parent directories.' -complete -c rg -n "__fish_use_subcommand" -l ignore-parent -complete -c rg -n "__fish_use_subcommand" -l no-ignore-vcs -d 'Don\'t respect VCS ignore files.' -complete -c rg -n "__fish_use_subcommand" -l ignore-vcs -complete -c rg -n "__fish_use_subcommand" -l no-messages -d 'Suppress some error messages.' -complete -c rg -n "__fish_use_subcommand" -l messages -complete -c rg -n "__fish_use_subcommand" -l no-pcre2-unicode -d 'Disable Unicode mode for PCRE2 matching.' -complete -c rg -n "__fish_use_subcommand" -l pcre2-unicode -complete -c rg -n "__fish_use_subcommand" -s 0 -l null -d 'Print a NUL byte after file paths.' -complete -c rg -n "__fish_use_subcommand" -l null-data -d 'Use NUL as a line terminator instead of \\n.' -complete -c rg -n "__fish_use_subcommand" -l one-file-system -d 'Do not descend into directories on other file systems.' -complete -c rg -n "__fish_use_subcommand" -l no-one-file-system -complete -c rg -n "__fish_use_subcommand" -s o -l only-matching -d 'Print only matches parts of a line.' -complete -c rg -n "__fish_use_subcommand" -l passthru -d 'Print both matching and non-matching lines.' -complete -c rg -n "__fish_use_subcommand" -s P -l pcre2 -d 'Enable PCRE2 matching.' -complete -c rg -n "__fish_use_subcommand" -l no-pcre2 -complete -c rg -n "__fish_use_subcommand" -l no-pre -complete -c rg -n "__fish_use_subcommand" -s p -l pretty -d 'Alias for --color always --heading --line-number.' -complete -c rg -n "__fish_use_subcommand" -s q -l quiet -d 'Do not print anything to stdout.' -complete -c rg -n "__fish_use_subcommand" -s z -l search-zip -d 'Search in compressed files.' -complete -c rg -n "__fish_use_subcommand" -l no-search-zip -complete -c rg -n "__fish_use_subcommand" -s S -l smart-case -d 'Smart case search.' -complete -c rg -n "__fish_use_subcommand" -l sort-files -d 'DEPRECATED' -complete -c rg -n "__fish_use_subcommand" -l no-sort-files -complete -c rg -n "__fish_use_subcommand" -l stats -d 'Print statistics about this ripgrep search.' -complete -c rg -n "__fish_use_subcommand" -l no-stats -complete -c rg -n "__fish_use_subcommand" -s a -l text -d 'Search binary files as if they were text.' -complete -c rg -n "__fish_use_subcommand" -l no-text -complete -c rg -n "__fish_use_subcommand" -l trim -d 'Trim prefixed whitespace from matches.' -complete -c rg -n "__fish_use_subcommand" -l no-trim -complete -c rg -n "__fish_use_subcommand" -l type-list -d 'Show all supported file types.' -complete -c rg -n "__fish_use_subcommand" -s u -l unrestricted -d 'Reduce the level of "smart" searching.' -complete -c rg -n "__fish_use_subcommand" -l vimgrep -d 'Show results in vim compatible format.' -complete -c rg -n "__fish_use_subcommand" -s H -l with-filename -d 'Print the file path with the matched lines.' -complete -c rg -n "__fish_use_subcommand" -l no-filename -d 'Never print the file path with the matched lines.' -complete -c rg -n "__fish_use_subcommand" -s w -l word-regexp -d 'Only show matches surrounded by word boundaries.' -complete -c rg -n "__fish_use_subcommand" -s h -l help -d 'Prints help information. Use --help for more details.' -complete -c rg -n "__fish_use_subcommand" -s V -l version -d 'Prints version information'