From fa441fa20e6d7d93e613f339d0c67ba8b0ab09c4 Mon Sep 17 00:00:00 2001 From: Peter Stephenson
when -dump'ing and -crawl'ing, mark wrapped lines in interactive session (off)]" \ @@ -47,7 +48,7 @@ _arguments -C \ '-fileversions[include all versions of files in local VMS directory listings]' \ '-force_empty_hrefless_a[force HREF-less 'A' elements to be empty (close them as soon as they are seen) (off)]' \ '-force_html[forces the first document to be interpreted as HTML (off)]' \ - '-force_secure[toggles forms-based vs old-style options menu (on)]' \ + '-force_secure[toggle forcing of the secure flag for SSL cookies (off)]' \ '-forms_options[toggles forms-based vs old-style options menu (on)]' \ '-from[toggle transmission of From headers (on)]' \ '-ftp[disable ftp access (off)]' \ @@ -57,11 +58,13 @@ _arguments -C \ '-hiddenlinks=[hidden links: options are merge, listonly, or ignore]:option:(merge listonly ignore)' \ "-historical[toggles use of '>' or '-->' as terminator for comments (off)]" \ '-homepage=[set homepage separate from start page]:URL:->html' \ + '-html5_charsets[toggle use of HTML5 charset replacements]' \ '-image_links[toggles inclusion of links for all images (off)]' \ '-index=[set the default index file to URL]:URL:->html' \ '-ismap[toggles inclusion of ISMAP links when client-side MAPs are present (off)]' \ '-justify[do justification of text (off)]' \ '-link=[starting count for lnk#.dat files produced by -crawl (0)]:starting count:' \ + '-list_inline[with -dump, show links inline with text]' \ '-listonly[with -dump, forces it to show only the list of links (off)]' \ '-localhost[disable URLs that point to remote hosts (off)]' \ '-locexec[enable local program execution from local files only (if lynx was compiled with local execution enabled)]' \ @@ -91,6 +94,7 @@ _arguments -C \ '-nostatus[disable the miscellaneous information messages (off)]' \ '-notitle[disable the title at the top of each page (off)]' \ '-nounderline[disable underline video-attribute]' \ + "-nozap=[disable checks for the 'z' key]:duration:(all initially full)" \ '-number_fields[force numbering of links as well as form input fields (off)]' \ '-number_links[force numbering of links (off)]' \ '-partial[toggles display partial pages while downloading (on)]' \ @@ -105,7 +109,7 @@ _arguments -C \ '-pseudo_inlines[toggles pseudo-ALTs for inlines with no ALT string (on)]' \ '-raw[toggles default setting of 8-bit character translations or CJK mode for the startup character set (off)]' \ '-realm[restricts access to URLs in the starting realm (off)]' \ - '-read_timeout=[set the N-second read-timeout (18000)]:timeout (seconds):' \ + '-read_timeout=[set the N-second read-timeout]:timeout (seconds) [18000]' \ '-reload[flushes the cache on a proxy server (only the first document affected) (off)]' \ '-restrictions=[use -restrictions to see list]:options:->restrictions' \ '-resubmit_posts[toggles forced resubmissions (no-cache) of forms with method POST when the documents they returned are sought with the PREV_DOC command or from the History List (off)]' \ @@ -113,6 +117,9 @@ _arguments -C \ '-scrollbar[toggles showing scrollbar (off)]' \ '-scrollbar_arrow[toggles showing arrows at ends of the scrollbar (on)]' \ '-selective[require .www_browsable files to browse directories]' \ + '-session=[resume from specified file on startup and save session to it on exit]:session file:_files' \ + '-sessionin=[resume session from specified file on startup]:session file:_files' \ + '-sessionout=[save session to specified file on exit]:session file:_files' \ '-short_url[enables examination of beginning and end of long URL in status line (off)]' \ "-show_cfg[show 'LYNX.CFG' setting (off)]" \ '-show_cursor[toggles hiding of the cursor in the lower right corner (on)]' \ @@ -131,16 +138,18 @@ _arguments -C \ '-trace[turns on Lynx trace mode (off)]' \ '-trace_mask=[customize Lynx trace mode]:trace mask:(0 1 2 3 4 5 6 7)' \ '-traversal[traverse all http links derived from startfile]' \ + '-trim_blank_lines[toggle trimming of leading/trailing/collapsed-br blank lines (on)]' \ '-trim_input_fields[trim input text/textarea fields in forms (off)]' \ '-underline_links[toggles use of underline/bold attribute for links (off)]' \ '-underscore[toggles use of _underline_ format in dumps (off)]' \ + '-unique_urls[toggle use of unique-urls setting for -dump and -listonly options (off)]' \ '-use_mouse[turn on mouse support (off)]' \ '-useragent=[set alternate Lynx User-Agent header]:user-agent header:' \ '-validate[accept only http URLs (meant for validation) implies more restrictions than -anonymous, but goto is allowed for http and https (off)]' \ '-verbose[toggles [LINK\], [IMAGE\] and [INLINE\] comments with filenames of these images (on)]' \ '(- *)-version[print Lynx version information]' \ '-vikeys[enable vi-like key movement (off)]' \ - '-width=[screen width for formatting of dumps (default is 80)]:number of columns:' \ + '-width=[specify screen width for formatting of dumps]:number of columns [80]' \ '-with_backspaces[emit backspaces in output if -dumping or -crawling]' \ '-xhtml-parsing[enable XHTML 1.0 parsing (off)]' \ ':URL:->html' && ret=0 @@ -148,12 +157,12 @@ _arguments -C \ case "$state" in restrictions) _values -s ',' 'restriction' \ - \? all bookmark bookmark_exec change_exec_perms chdir default \ - dired_support disk_save dotfiles download editor exec exec_frozen \ + \? all bookmark bookmark_exec change_exec_perms chdir compileopts_info \ + default dired_support disk_save dotfiles download editor exec exec_frozen \ externals file_url goto inside_ftp inside_news inside_rlogin \ - inside_telnet jump lynx_cgi mail multibook news_post options_save \ - outside_ftp outside_news outside_rlogin outside_telnet print shell \ - suspend telnet_port useragent && return + inside_telnet jump lynxcfg_info lynxcfg_xinfo lynxcgi mail multibook \ + news_post options_save outside_ftp outside_news outside_rlogin \ + outside_telnet print shell suspend telnet_port useragent && return ;; html) _alternative 'files:file:_files -g "*.x#html#(-.)"' 'urls:URL:_urls' && return diff --git a/Completion/Unix/Command/_mpc b/Completion/Unix/Command/_mpc index 45d93550d..4f200c69e 100644 --- a/Completion/Unix/Command/_mpc +++ b/Completion/Unix/Command/_mpc @@ -37,6 +37,7 @@ _mpc_command() { disable:"disable an output" enable:"enable an output" toggleoutput:"toggle an output" + outputset:"set output attributes" idle:"wait until an event occurs" idleloop:"loop waiting for events" insert:"insert a song after the currently playing song in the playlist" @@ -73,6 +74,7 @@ _mpc_command() { stop:"stop the currently playing playlists" toggle:"toggles Play/Pause, plays if stopped" update:"scan music directory for updates" + rescan:"rescan music directory (including unchanged files)" version:"report version of MPD" volume:"set volume" status:"display MPD status" @@ -222,6 +224,16 @@ _mpc_toggleoutput() { _mpc_helper_outputs } +_mpc_outputset() { + if (( CURRENT == 2 )); then + _mpc_helper_outputs + else + _values -w -S = attribute \ + 'dop:setting:(1 0)' \ + 'allowed_formats:formats' + fi +} + _mpc_move() { if (( $#words <= 3 )); then _mpc_helper_songnumbers @@ -318,6 +330,10 @@ _mpc_update() { _mpc_helper_files } +_mpc_rescan() { + _mpc_helper_files +} + if [[ $service = *MPD_HOST* ]]; then _hosts return @@ -339,7 +355,7 @@ if [[ $state = formats ]]; then compset -P '([^%]|%[^%]#%)#' _wanted metadata expl 'metadata delimiter' compadd -p % -S % \ artist album albumartist comment composer date disc genre performer title \ - track time file position mtime mdate && ret=0 + track time file position id prio mtime mdate && ret=0 fi return ret diff --git a/Completion/Unix/Command/_readelf b/Completion/Unix/Command/_readelf index 282431462..ce78baf27 100644 --- a/Completion/Unix/Command/_readelf +++ b/Completion/Unix/Command/_readelf @@ -7,6 +7,7 @@ _pick_variant -r variant elftoolchain=elftoolchain elfutils=elfutils binutils -- args=( '(-a --all)'{-a,--all}'[show all tables]' + '(-g --section-groups)'{-g,--section-groups}'[show section groups]' '(-h --file-header)'{-h,--file-header}'[show file header]' '(-l --program-headers --segments)'{-l,--program-headers,--segments}'[show program headers]' '(-S --section-headers --sections)'{-S,--section-headers,--sections}'[show sections header]' @@ -31,7 +32,6 @@ args=( case $variant in elftoolchain|binutils) args+=( - '(-g --section-groups)'{-g,--section-groups}'[show section groups]' '(-t --section-details)'{-t,--section-details}'[show section details]' '(-e --headers)'{-e,--headers}'[show file, program and sections headers]' '(-s --syms --symbols)'{-s,--syms,--symbols}'[show symbol table]' @@ -49,6 +49,7 @@ case $variant in ;; elfutils) args+=( + '--dwarf-skeleton=[find skeleton compile units (with -w)]:file:_files' '--elf-section[used specified section as ELF input data]::section' '(-e --exception)'{-e,--exception}'[show sections for exception handling]' '(-N --numeric-addresses)'{-N,--numeric-addresses}"[don't find symbol names for addresses in DWARF data]" diff --git a/Completion/Unix/Command/_sqlite b/Completion/Unix/Command/_sqlite index 58f7a9116..4604fb40c 100644 --- a/Completion/Unix/Command/_sqlite +++ b/Completion/Unix/Command/_sqlite @@ -1,6 +1,6 @@ #compdef sqlite sqlite3 -local ret opt display_opt sqlite3 +local opt display_opt sqlite3 ign local -a options output_modes exclusive dashes [[ $service = sqlite3 ]] && sqlite3=true || unset sqlite3 @@ -31,16 +31,18 @@ for display_opt in $output_modes ; do options+=( "($exclusive)"$^dashes"-${opt}[set output mode to $display_opt]" ) done +(( $#words == 2 )) || ign='!' options+=( $^dashes'-separator[set output field separator]:output field separator [|]' $^dashes'-nullvalue[set text string for null values]:string' - '(- :)'$^dashes'-version[show SQLite version]' - '(- :)'$^dashes'-help[show help]' + "$ign(- :)"$^dashes'-version[show SQLite version]' + "$ign(- :)"$^dashes'-help[show help]' '1:SQLite database file:_files' - '(- :)2:SQL to run' + '(- :)2: :_guard "^-*" "SQL to run"' ) (( $+sqlite3 )) && options+=( + $^dashes'-A+[run .archive with arguments and exit]' $^dashes'-append[append the database to the end of the file]' $^dashes'-bail[stop after hitting an error]' $^dashes'-cmd[run specified command before reading stdin]:sqlite meta-command' @@ -53,6 +55,23 @@ options+=( $^dashes'-readonly[open the database read-only]' $^dashes'-stats[print memory stats before each finalize]' $^dashes'-vfs[use specified default VFS]:vfs:(unix-dotfile unix-excl unix-none unix-namedsem)' + $^dashes'-zip[open the file as a ZIP Archive]' ) +if [[ -n $words[(r)-A*] ]]; then + options=( -s -w : '(-A --A)'${^dashes}-A "(-f --file -a --append)"${(M)options:#1:*} + '(-v --verbose)'{-v,--verbose}'[print each filename as it is processed]' + '(1 -a --append -f --file)'{-f+,--file=}'[specify archive file]:archive file:_files' + '(1 -a --append -f --file)'{-a,--append=}'[operate on specified file opened using the apndvfs VFS]:archive file:_files' + '(-C --directory)'{-C+,--directory=}'[change to specified directory to read/extract files]:directory:_directories' + '(-n --dryrun)'{-n,--dryrun}'[show the SQL that would have occurred]' + '*:file:_files' + + '(commands)' \ + '(-c --create)'{-c,--create}'[create a new archive]' + '(-u --update)'{-u,--update}'[update or add files to an existing archive]' + '(-t --list)'{-t,--list}'[list contents of archive]' + '(-x --extract)'{-x,--extract}'[extract files from archive]' + ) +fi + _arguments $options diff --git a/Completion/Unix/Command/_subversion b/Completion/Unix/Command/_subversion index b7e10c06b..e16be7e59 100644 --- a/Completion/Unix/Command/_subversion +++ b/Completion/Unix/Command/_subversion @@ -26,7 +26,7 @@ _svn () { _arguments -C -A "-*" \ '(-)--help[print help information]' \ - '(- *)--version[print client version information]' \ + '(*)--version[print client version information]' \ '1: :->cmds' \ '*:: :->args' && ret=0 @@ -169,6 +169,9 @@ _svn () { '*:file:_files -g "(.svn|*)(/e:_svn_deletedfiles:,e:_svn_status:)"' ) ;; + (unshelve) + args+=( '1:shelf name:compadd - ${${(f)"$(_call_program shelves svn unshelve -q --list)"}%% *}' ) + ;; (*) case $usage in *(SRC|DST|TARGET|URL*PATH)*) diff --git a/Completion/Unix/Command/_tmux b/Completion/Unix/Command/_tmux index 730959e84..ae3446a08 100644 --- a/Completion/Unix/Command/_tmux +++ b/Completion/Unix/Command/_tmux @@ -235,6 +235,7 @@ _tmux-choose-client() { _tmux-choose-tree() { [[ -n ${tmux_describe} ]] && print "put a window into tree choice mode" && return _arguments -s \ + '-G[include all sessions in any session groups in the tree rather than only the first]' \ '-N[start without the preview]' \ '-F+[specify format for each list item]:format:__tmux-formats' \ '-f+[filter items]:filter format:__tmux-formats' \ @@ -562,6 +563,8 @@ _tmux-paste-buffer() { _tmux-pipe-pane() { [[ -n ${tmux_describe} ]] && print "pipe output from a pane to a shell command" && return _arguments -s -A "-*" -S \ + '-I[write stdout from command to the pane as if it were typed]' \ + '-O[pipe output from the pane to the command (default unless -I used)]' \ '-o[only open a pipe if none is currently opened]' \ '-t+[specify target pane]:pane:__tmux-panes' \ ':shell command:_cmdstring' @@ -658,12 +661,13 @@ _tmux-save-buffer() { } _tmux-select-layout() { - [[ -n ${tmux_describe} ]] && print "choose a layout for a window" && return + [[ -n ${tmux_describe} ]] && print "choose a layout for a pane" && return _arguments -s -A "-*" -S \ + '-E[spread the current pane and any panes next to it out evenly]' \ '-n[behave like next-layout]' \ '-o[revert to previous layout]' \ '-p[behave like previous-layout]' \ - '-t+[specify a target window]:target window:__tmux-windows' \ + '-t+[specify a target pane]:target pane:__tmux-panes' \ ':layout:(even-horizontal even-vertical main-horizontal main-vertical tiled)' } diff --git a/Completion/Unix/Command/_user_admin b/Completion/Unix/Command/_user_admin index 7eeec7e9b..fe28c13f5 100644 --- a/Completion/Unix/Command/_user_admin +++ b/Completion/Unix/Command/_user_admin @@ -150,6 +150,7 @@ case ${service%???}:${(M)service%???}:$OSTYPE in *:*:linux*) args+=( '(-R --root)'{-R,--root=}'[specify directory to chroot into]:directory:_directories' + '(-P --prefix)'{-P,--prefix=}"[specify root directory to apply changes in but don't chroot]:directory:_directories" '(-D -U -L -p --password)'{-p+,--password=}'[specify encrypted password]:encrypted password' '(-)'{-h,--help}'[display help information]' ) diff --git a/Completion/Unix/Command/_wget b/Completion/Unix/Command/_wget index 1a7e2d0a3..2a4e722d8 100644 --- a/Completion/Unix/Command/_wget +++ b/Completion/Unix/Command/_wget @@ -22,6 +22,7 @@ _arguments -C -s \ '(--config)--no-config' '--rejected-log=:file:_files' \ '(--tries -t)'{--tries=,-t+}'[set number of retries]:number of retries' \ '--retry-connrefused[retry even if connection is refused]' \ + '--retry-on-http-error=[specify list of HTTP errors to retry]:http error' \ '(--output-document -O)'{--output-document=,-O+}'[specify file to write documents to]:output file:_files' \ '(--continue -c)'{--continue,-c}'[continue getting an existing file]' \ '--start-pos=:offset' '--show-progress' \ @@ -38,8 +39,7 @@ _arguments -C -s \ '(--wait -w)'{--wait=,-w+}'[specify wait between retrievals]:time (seconds)' \ '(--random-wait)--waitretry=:time (seconds)' \ '(--waitretry)--random-wait[random wait time between retrievals]' \ - '(--proxy -Y --no-proxy)'{--proxy=,-Y+}'[explicitly turn on proxy]' \ - '(--proxy -Y --no-proxy)--no-proxy[explicitly turn off proxy]' \ + '--no-proxy[explicitly turn off proxy]' \ '(--quota -Q)'{--quota=,-Q+}'[set retrieval quota]:number' \ '--bind-address=[specify address to bind to (hostname or IP)]:bind address:_bind_addresses' \ '--limit-rate=[specify limit to download rate]:download rate limit' \ @@ -48,7 +48,7 @@ _arguments -C -s \ '--ignore-case[ignore case when matching files/directories]' \ '(-4 --inet4-only -6 --inet6-only)'{-4,--inet4-only}'[connect only to IPv4 addresses]' \ '(-4 --inet4-only -6 --inet6-only)'{-6,--inet6-only}'[connect only to IPv6 addresses]' \ - '--prefer-family[connect first to addresses of specified family]:address family:(IPv6 IPv4 none)' \ + '--prefer-family=[connect first to addresses of specified family]:address family:(IPv6 IPv4 none)' \ '(--http-user --ftp-user)--user[set both ftp and http user]:user' \ '(--http-password --ftp-password)--password[set both ftp and http password]:password' \ '(--password --http-password --ftp-password)--ask-password:[prompt for passwords]' \ @@ -67,7 +67,7 @@ _arguments -C -s \ '(--user)--http-user=:user' \ '(--password --ask-password)--http-password=:password' \ '--no-cache[disallow server-cached data]' \ - '--default-page=[specify default page name, normally index.html]' \ + '--default-page=[specify default page name, normally index.html]:default page [index.html]' \ '(--adjust-extension -E)'{--adjust-extension,-E}'[save all HTML/CSS documents with proper extensions]' \ "--ignore-length[ignore \`Content-Length' header field]" \ '*--header=[send a custom HTTP header]:header:->header' \ @@ -93,7 +93,7 @@ _arguments -C -s \ "--auth-no-challenge[send basic HTTP authentication without first waiting for server's challenge]" \ '--secure-protocol=[choose secure protocol]:protocol:(SSLv2 SSLv3 TLSv1 TLSv1_1 TLSv1_2 PFS)' \ --https-only \ - "--no-check-certificate=[don't check the server certificate]" \ + "--no-check-certificate[don't check the server certificate]" \ '--certificate=[specify client certificate]:client certificate file:_files' \ '--certificate-type=[specify client certificate type]:certificate type:(PEM DER)' \ '--private-key=[specify private key file]:key file:_files' \ @@ -104,6 +104,7 @@ _arguments -C -s \ '--pinnedpubkey=:file:_files' \ '--random-file[specify file with random data for seeding generator]:file:_files' \ '--egd-file=[specify filename of EGD socket]:file:_files' \ + '--ciphers=[set the priority string (GnuTLS) or cipher list string (OpenSSL) directly]:string' \ '--no-hsts[disable HSTS]' \ '--hsts-file[specify path of HSTS database]:file:_files' \ '(--user)--ftp-user=:user' \ diff --git a/Completion/Unix/Command/_xxd b/Completion/Unix/Command/_xxd index 1b1613a64..0034be519 100644 --- a/Completion/Unix/Command/_xxd +++ b/Completion/Unix/Command/_xxd @@ -26,7 +26,7 @@ arguments=( '( -E -EBCDIC -i -include -p -postscript -plain -ps -r -revert )'{-E,-EBCDIC}'[print human-readable part in EBCDIC rather than ASCII]' '(-i -include -p -postscript -plain -ps -r -revert)'{-e,-endian}'[little-endian dump]' '(-b -bits -E -EBCDIC -i -include -p -postscript -plain -ps -r -revert )'{-i,-include}'[output in C include file style]' - '(-b -bits -E -EBCDIC -i -include -p -postscript -plain -ps )'{-p,-postscript,-plain,-ps}'[read or write a plain hexdump (no line numbers or ASCII rendering)]' + '(-b -bits -E -EBCDIC -i -include -p -postscript -plain -ps -C -capitalize )'{-p,-postscript,-plain,-ps}'[read or write a plain hexdump (no line numbers or ASCII rendering)]' '(-b -bits -E -EBCDIC -i -include -r -revert -u -uppercase)'{-r,-revert}'[reverse mode\: read a hex dump and output binary data]' '(-b -bits -r -revert -u -uppercase)'{-u,-uppercase}'[output upper-case hex digits]' @@ -34,7 +34,7 @@ arguments=( '(- :)'{-h,-help}'[display usage message]' '(- :)'{-v,-version}'[show program version]' '*'{-a,-autoskip}"[a single '*' replaces runs of NUL (toggleable)]" - + '(-C -capitalize)'{-C,-capitalize}'[capitalize variable names in C include file style]' {-c+,-cols}'[specify number of octets per line]: :_guard "[0-9a-fA-Fx]#" "number of octets per line"' {-g+,-groupsize}'[specify the number of octets per group]: :_guard "[0-9]#" "number of octets per group"' {-l+,-len}'[specify number of octets to output]: :_guard "[0-9]#" "number of octets to output"' diff --git a/Completion/X/Command/_qiv b/Completion/X/Command/_qiv index d10407584..35ceec09a 100644 --- a/Completion/X/Command/_qiv +++ b/Completion/X/Command/_qiv @@ -5,7 +5,9 @@ _arguments -s \ '(- *)'{-v,--version}'[display version information]' \ '--display:display:_x_display' \ \*{-F,--file}'[read file names from file]:file:_files' \ + '(-B --browse)'{-B,--browse}'[scan directory of file for browsing]' \ '(-e --center)'{-e,--center}'[disable window centering]' \ + '(-C --cycle)'{-C,--cycle}"[don't cycle after last image]" \ '(-w --fixed_width -W --fixed_zoom)'{-w,--fixed_width}'[use window with specified width]:width' \ '(-w --fixed_width -W --fixed_zoom)'{-W,--fixed_zoom}'[use window with specified zoom factor]:zoom (percentage)' \ '(-x -y -z --root --root_t --root_s -f --file *)'{-x,--root}'[use image as the current desktop background, centered]:image file:_files' \ @@ -13,6 +15,7 @@ _arguments -s \ '(-x -y -z --root --root_t --root_s -f --file *)'{-z,--root_s}'[use image as the current desktop background, stretched]:image file:_files' \ '(-m --maxpect)'{-m,--maxpect}'[expand image to fit screen size]' \ '(-t --scale_down)'{-t,--scale_down}'[shrink images to fit screen size]' \ + "--trashbin[move files to user's trash bin instead of .qiv-trash when deleting]" \ '(-b --brightness)'{-b,--brightness}'[set brightness]:brightness (-32..32)' \ '(-c --contrast)'{-c,--contrast}'[set contrast]:contrast (-32..32)' \ '(-g --gamma)'{-g,--gamma}'[set gamma]:gamma (-32..32)' \ @@ -21,7 +24,7 @@ _arguments -s \ '(-i --no_statusbar -I --statusbar)'{-I,--statusbar}'[enable statusbar]' \ '(-p --transparency)'{-p,--transparency}'[enable transparency]' \ '(-a --do_grab)'{-a,--do_grab}'[grab the pointer in windowed mode]' \ - '(-G --disable_grab)'{-G,--disable_grab}'[disable pointer grabbing]' \ + '(-G --disable_grab)'{-G,--disable_grab}'[disable pointer grabbing in fullscreen mode]' \ '(-o --bg_color)'{-o,--bg_color}'[set root background color]:color:_x_color' \ '(-s --slide)'{-s,--slide}'[start slideshow immediately]' \ '(-r --random)'{-r,--random}'[shuffle images for slideshow]' \ @@ -31,6 +34,17 @@ _arguments -s \ '(-f --fullscreen)'{-f,--fullscreen}'[use fullscreen window on startup]' \ '(-P --ignore_path_sort)'{-P,--ignore_path_sort}'[sort images by just the filename]' \ '(-M --merged_case_sort)'{-M,--merged_case_sort}'[sort images case-insensitively]' \ - '(-N --numeric_sort)'{-N,--numeric_sort}'[numeric image sort]' \ + '(-K --mtime_sort)'{-K,--mtime_sort}'[sort images by their modification time]' \ + '(-N --numeric_sort -K --mtime_sort)'{-N,--numeric_sort}'[numeric image sort]' \ + '(-D --no_sort -N --numeric_sort -K --mtime_sort -M --merged_case_sort -P --ignore_path_sort)'{-D,--no_sort}"[don't apply any sorting to the images]" \ '(-T --watch)'{-T,--watch}'[reload the image if it changes]' \ - '*:image file:_files -g "*.(#i)(bmp|eim|gif|jp([eg]|eg)|pcx|png|p[pngb]m|tif(|f)|tga|x[pb]m)(-.)"' + '(-u --recursivedir)'{-u,--recursivedir}'[recursively include all files]' \ + '(-L --followlinks)'{-L,--followlinks}'[follow symlinks to directories]' \ + '(-A --select_dir)'{-A,--select_dir}'[store selected files in specified directory]:directory [.qiv-select]:_directories' \ + '(-l --autorotate)'{-l,--autorotate}"[don't autorotate JPEGs according to EXIF rotation tag]" \ + '(-q --rotate)'{-q,--rotate}'[rotate image]:angle:((1\:90 2\:180 3\:270))' \ + '(-X --xineramascreen)'{-X,--xineramascreen}'[specify preferred screen]:screen' \ + '(-Y --source_profile)'{-Y,--source_profile}'[specify colour profile file as source profile]:colour profile file:_files' \ + '(-Z --display_profile)'{-Z,--display_profile}'[specify colour profile file as display profile]:colour profile file:_files' \ + '--vikeys[enable movement with h/j/k/l]' \ + '*:image file:_files -g "*.(#i)(bmp|eim|gif|ico|jp([eg]|eg)|pcx|png|p[pngb]m|pjpeg|svg|tif(|f)|wmf|x[pb]m)(-.)"' diff --git a/Completion/Zsh/Command/_which b/Completion/Zsh/Command/_which index c43704ae8..9b789c86b 100644 --- a/Completion/Zsh/Command/_which +++ b/Completion/Zsh/Command/_which @@ -1,6 +1,6 @@ #compdef which whence where type -local farg aarg cargs args state line curcontext="$curcontext" ret=1 +local farg aarg xarg cargs args state line curcontext="$curcontext" ret=1 cargs=( \ '(-v -c)-w[print command type]' \ @@ -11,6 +11,7 @@ cargs=( \ '*:commands:->command' ) farg='-f[output contents of functions]' aarg='-a[print all occurrences in path]' +xarg='-x+[specify spaces to use for indentation in function expansion]:spaces' case ${service} in whence) @@ -19,8 +20,8 @@ case ${service} in '(-v -w)-c[csh-like output]' \ "${cargs[@]}" "$farg" "$aarg" && ret=0 ;; - where) _arguments -C -s -A "-*" -S "${cargs[@]}" && ret=0;; - which) _arguments -C -s -A "-*" -S "${cargs[@]}" "$aarg" && ret=0;; + where) _arguments -C -s -A "-*" -S "${cargs[@]}" "$xarg" && ret=0;; + which) _arguments -C -s -A "-*" -S "${cargs[@]}" "$aarg" "$xarg" && ret=0;; type) _arguments -C -s -A "-*" -S "${cargs[@]}" "$aarg" "$farg" && ret=0;; esac diff --git a/Completion/Zsh/Command/_zed b/Completion/Zsh/Command/_zed index 211dae7df..6b68fadf0 100644 --- a/Completion/Zsh/Command/_zed +++ b/Completion/Zsh/Command/_zed @@ -5,5 +5,6 @@ case $service in (zed) _arguments -S : \ '(- 2):file:_files' \ '(1):shell function:_functions' \ + '(1)-x+[specify spaces to use for indentation in function expansion]:spaces' \ '(1)-f[edit function]';; esac -- cgit v1.2.3 From 99fd8c0fe97b6e481ea41c16c753f3033aa1b47a Mon Sep 17 00:00:00 2001 From: Marc CornellàDate: Tue, 7 Aug 2018 16:45:31 +0200 Subject: unposted (PR #26): __git_files: fix double quotation of star This fixes the double quote introduced by aa160fc8, so that the end result of the parameter expansion is $pref followed by \* (a quoted star), meaning `git ls-files` gets a literal star, not an expanded list of matching files, as was intended in commit cc7437bf. Fixes completion of `git add ../ `. --- ChangeLog | 5 +++++ Completion/Unix/Command/_git | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'Completion/Unix/Command/_git') diff --git a/ChangeLog b/ChangeLog index 5b3ace6a9..110f8636d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2018-08-12 Marc Cornellà + + * unposted (PR #26): Completion/Unix/Command/_git: __git_files: + fix double quotation of star + 2018-08-09 Peter Stephenson * 43264: Src/params.c, Test/D04parameter.ztst: diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index 38b872ea0..eac0c8476 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -6812,7 +6812,7 @@ __git_files () { local pref=$gitcdup$gitprefix$PREFIX # First allow ls-files to pattern-match in case of remote repository - files=(${(0)"$(_call_program files git ls-files -z --exclude-standard ${(q)opts} -- ${(q)${pref:+$pref\\\*}:-.} 2>/dev/null)"}) + files=(${(0)"$(_call_program files git ls-files -z --exclude-standard ${(q)opts} -- ${(q)${pref:+$pref\*}:-.} 2>/dev/null)"}) __git_command_successful $pipestatus || return # If ls-files succeeded but returned nothing, try again with no pattern -- cgit v1.2.3