"Fossies" - the Fresh Open Source Software Archive

Member "googler-4.3.2/auto-completion/fish/googler.fish" (21 Jan 2021, 3090 Bytes) of package /linux/misc/googler-4.3.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Fish source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "googler.fish": 4.2_vs_4.3.1.

    1 #
    2 # Fish completion definition for googler.
    3 #
    4 # Author:
    5 #   Arun Prakash Jana <engineerarun@gmail.com>
    6 #
    7 
    8 function __fish_googler_non_option_argument
    9     not string match -- "-*" (commandline -ct)
   10 end
   11 
   12 function __fish_googler_complete_query
   13     googler --complete (commandline -ct) ^/dev/null
   14 end
   15 
   16 complete -c googler -s h -l help              --description 'show help text and exit'
   17 complete -c googler -s s -l start   -r        --description 'start at the Nth result'
   18 complete -c googler -s n -l count   -r        --description 'show specified number of results (default 10)'
   19 complete -c googler -s N -l news              --description 'show results from news section'
   20 complete -c googler -s V -l videos            --description 'show results from videos section'
   21 complete -c googler -s c -l tld     -r        --description 'country-specific search with top-level domain'
   22 complete -c googler -s l -l lang    -r        --description 'display in specified language'
   23 complete -c googler -s g -l geoloc  -r        --description 'specify geolocation code'
   24 complete -c googler -s x -l exact             --description 'disable automatic spelling correction'
   25 complete -c googler -l colorize     -r        --description 'whether to colorize output (options: auto/always/never)'
   26 complete -c googler -s C -l nocolor           --description 'disable color output'
   27 complete -c googler -l colors       -r        --description 'set output colors'
   28 complete -c googler -s j -l first -l lucky    --description 'open the first result in a web browser'
   29 complete -c googler -s t -l time    -r        --description 'time limit search (h/d/w/m/y + number)'
   30 complete -c googler -l from         -r        --description 'starting date/month/year of date range'
   31 complete -c googler -l to           -r        --description 'ending date/month/year of date range'
   32 complete -c googler -s w -l site    -r        --description 'search a site using Google'
   33 complete -c googler -s e -l exclude -r        --description 'exclude site from results'
   34 complete -c googler -l unfilter               --description 'do not omit similar results'
   35 complete -c googler -s p -l proxy   -r        --description 'proxy in HOST:PORT format'
   36 complete -c googler -l notweak                --description 'disable TCP optimizations, forced TLS 1.2'
   37 complete -c googler -l json                   --description 'output in JSON format'
   38 complete -c googler -l url-handler  -r        --description 'cli script or utility'
   39 complete -c googler -l show-browser-logs      --description 'do not suppress browser output'
   40 complete -c googler -l np -l noprompt         --description 'perform search and exit'
   41 complete -c googler -s u -l upgrade           --description 'perform in-place self-upgrade'
   42 complete -c googler -l include-git            --description 'use git master for --upgrade'
   43 complete -c googler -s v -l version           --description 'show version number and exit'
   44 complete -c googler -s d -l debug             --description 'enable debugging'
   45 complete -c googler -n __fish_googler_non_option_argument -a '(__fish_googler_complete_query)'