mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-03 10:21:46 +02:00
21294: fix incorrectly capitalized completion descriptions
This commit is contained in:
parent
f688a43ac2
commit
9f63db611a
9 changed files with 80 additions and 70 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
2005-06-01 Doug Kearns <djkea2@gus.gscit.monash.edu.au>
|
||||
|
||||
* 21294: Completion/Cygwin/Command/_cygstart,
|
||||
Completion/Debian/Command/_apt-move,
|
||||
Completion/Debian/Command/_module-assistant,
|
||||
Completion/Unix/Command/_ccal, Completion/Unix/Command/_perl,
|
||||
Completion/Unix/Command/_surfraw, Completion/Unix/Command/_vux,
|
||||
Completion/X/Command/_kfmclient: fix incorrectly capitalized completion
|
||||
descriptions
|
||||
|
||||
2005-05-31 Geoff Wing <gcw@zsh.org>
|
||||
|
||||
* 21290: configure.ac: don't need backslash quoting within single-quote
|
||||
|
|
|
@ -5,26 +5,26 @@ local context state line
|
|||
typeset -A opt_args
|
||||
_arguments \
|
||||
'(--action -a)'{-a,--action=-}':Use specified action instead of default:(open edit explore print find)' \
|
||||
'(--open -o)'{-o,--open}'[Short for: --action open]' \
|
||||
'(--explore -x)'{-x,--explore}'[Short for: --action explore]' \
|
||||
'(--edit -e)'{-e,--edit}'[Short for: --action edit]' \
|
||||
'(--find -f)'{-f,--find}'[Short for: --action find]' \
|
||||
'(--print -p)'{-p,--print}'[Short for: --action print]' \
|
||||
'(--open -o)'{-o,--open}'[short for: --action open]' \
|
||||
'(--explore -x)'{-x,--explore}'[short for: --action explore]' \
|
||||
'(--edit -e)'{-e,--edit}'[short for: --action edit]' \
|
||||
'(--find -f)'{-f,--find}'[short for: --action find]' \
|
||||
'(--print -p)'{-p,--print}'[short for: --action print]' \
|
||||
'(--directory -d)'{-d,--directory=-}':Set working directory:_directories' \
|
||||
'--hide[Hides the window and activates another window]' \
|
||||
'--maximize[Maximizes the specified window]' \
|
||||
'--minimize[Minimizes the specified window and activates the next top-level window in the z-order]' \
|
||||
'--restore[Activates and displays the window. If the window is minimized or maximized, Windows restores it to its original size and position. An application should specify this flag when restoring a minimized window]' \
|
||||
'--show[Activates the window and displays it in its current size and position]' \
|
||||
'--showmaximized[Activates the window and displays it as a maximized window]' \
|
||||
'--showminimized[Activates the window and displays it as a minimized window]' \
|
||||
'--showminnoactive[Displays the window as a minimized window. The active window remains active]' \
|
||||
'--showna[Displays the window in its current state. The active window remains active]' \
|
||||
'--shownoactivate[Displays a window in its most recent size and position. The active window remains active]' \
|
||||
'--shownormal[Activates and displays a window. If the window is minimized or maximized, Windows restores it to its original size and position. An application should specify this flag when displaying the window for the first time]' \
|
||||
'(--help -?)'{'-?',--help}'[Show this help message]' \
|
||||
'--usage[Display brief usage message]' \
|
||||
'--version[Display version information]' \
|
||||
'--license[Display licensing information]' \
|
||||
'--reference[Open MSDN reference for ShellExecute]' \
|
||||
'--hide[hides the window and activates another window]' \
|
||||
'--maximize[maximizes the specified window]' \
|
||||
'--minimize[minimizes the specified window and activates the next top-level window in the z-order]' \
|
||||
'--restore[activates and displays the window. If the window is minimized or maximized, Windows restores it to its original size and position. An application should specify this flag when restoring a minimized window]' \
|
||||
'--show[activates the window and displays it in its current size and position]' \
|
||||
'--showmaximized[activates the window and displays it as a maximized window]' \
|
||||
'--showminimized[activates the window and displays it as a minimized window]' \
|
||||
'--showminnoactive[displays the window as a minimized window. The active window remains active]' \
|
||||
'--showna[displays the window in its current state. The active window remains active]' \
|
||||
'--shownoactivate[displays a window in its most recent size and position. The active window remains active]' \
|
||||
'--shownormal[activates and displays a window. If the window is minimized or maximized, Windows restores it to its original size and position. An application should specify this flag when displaying the window for the first time]' \
|
||||
'(--help -?)'{'-?',--help}'[show this help message]' \
|
||||
'--usage[display brief usage message]' \
|
||||
'--version[display version information]' \
|
||||
'--license[display licensing information]' \
|
||||
'--reference[open MSDN reference for ShellExecute]' \
|
||||
'*:program: _command_names -e:*::program arguments: _normal'
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
local state line
|
||||
|
||||
_arguments \
|
||||
'-c[Specify an alternative configuration file]' \
|
||||
'-d[Override the DIST setting]' \
|
||||
'-f[Override the MAXDELETE setting]' \
|
||||
'-q[Be quiet; suppress normal output]' \
|
||||
'-t[Show what apt-move would do, but do not actually do anything]' \
|
||||
'-c[specify an alternative configuration file]' \
|
||||
'-d[override the DIST setting]' \
|
||||
'-f[override the MAXDELETE setting]' \
|
||||
'-q[be quiet; suppress normal output]' \
|
||||
'-t[show what apt-move would do, but do not actually do anything]' \
|
||||
'1: :->cmds' \
|
||||
'*: :->args' && return 0
|
||||
|
||||
|
|
|
@ -22,15 +22,15 @@ _module_assistant_commands=(
|
|||
|
||||
_arguments -A \
|
||||
'(-h --help)'{-h,--help}'[print help screen]' \
|
||||
'(-v --verbose)'{-v,--verbose}'[Be verbose, show full paths, etc.]' \
|
||||
'(-q --quiet)'{-q,--quiet}'[The opposite of verbose]' \
|
||||
'(-n --no-rebuild)'{-n,--no-rebuild}'[Do not rebuild when package exists]' \
|
||||
'(-i --ignore-failures)'{-i,--ignore-failures}'[Do not stop on build failures]' \
|
||||
'(-s --apt-search)'{-s,--apt-search}'[Search for installation candidates in the Debian archive]' \
|
||||
'(-f --force)'{-f,--force}'[Force using new versions even when old ones exist]' \
|
||||
'(-u --userdir)'{-u,--userdir}'[Specify a (writable) replacement directory for /var&/usr]:dir:_files -/' \
|
||||
'(-l --kvers-list)'{-l,--kvers-list}'[List of kernel versions to work on (default: current version)]:kernel version list:' \
|
||||
'(-k --kernel-dir)'{-k,--kernel-dir}'[List of kernel headers/source directories, comma separated]:list of dirs:_files -/' \
|
||||
'(-v --verbose)'{-v,--verbose}'[be verbose, show full paths, etc.]' \
|
||||
'(-q --quiet)'{-q,--quiet}'[the opposite of verbose]' \
|
||||
'(-n --no-rebuild)'{-n,--no-rebuild}'[do not rebuild when package exists]' \
|
||||
'(-i --ignore-failures)'{-i,--ignore-failures}'[do not stop on build failures]' \
|
||||
'(-s --apt-search)'{-s,--apt-search}'[search for installation candidates in the Debian archive]' \
|
||||
'(-f --force)'{-f,--force}'[force using new versions even when old ones exist]' \
|
||||
'(-u --userdir)'{-u,--userdir}'[specify a (writable) replacement directory for /var&/usr]:dir:_files -/' \
|
||||
'(-l --kvers-list)'{-l,--kvers-list}'[list of kernel versions to work on (default: current version)]:kernel version list:' \
|
||||
'(-k --kernel-dir)'{-k,--kernel-dir}'[list of kernel headers/source directories, comma separated]:list of dirs:_files -/' \
|
||||
'(-t --text-mode)'{-t,--text-mode}'[no progress bars]' \
|
||||
'1:list of commands:_values -s , subcommands "${_module_assistant_commands[@]}"' \
|
||||
'*:packages: compadd /usr/src/modass/var_cache_modass/*.avail_version(N:t:r) /var/cache/modass/*.avail_version(N:t:r)'
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
#compdef ccal
|
||||
|
||||
_arguments \
|
||||
'-nodata[Ignore appointment descriptions file]' \
|
||||
'-data-file=[Load appointments from file]:caldat file:_files' \
|
||||
'-future[Show only future appointments on current month]' \
|
||||
'-today[Show only today'"'"'s appointments on current month]' \
|
||||
'-nodata[ignore appointment descriptions file]' \
|
||||
'-data-file=[load appointments from file]:caldat file:_files' \
|
||||
'-future[show only future appointments on current month]' \
|
||||
'-today[show only today'"'"'s appointments on current month]' \
|
||||
'-europe[European format (first day is Monday)]' \
|
||||
'-american[North American format (first day is Sunday)]' \
|
||||
'-maxappts=[Display maximum of n appointments]:number of appointments:('{8..50}')' \
|
||||
'-pause[Pause for keystroke before exiting]' \
|
||||
'-nocolor[Inhibit use of colors]' \
|
||||
'-color-file=[Load color definitions from file]:calcol file:_files' \
|
||||
'-8bit[Display 8-bit ascii characters]' \
|
||||
'-maxappts=[display maximum of n appointments]:number of appointments:('{8..50}')' \
|
||||
'-pause[pause for keystroke before exiting]' \
|
||||
'-nocolor[inhibit use of colors]' \
|
||||
'-color-file=[load color definitions from file]:calcol file:_files' \
|
||||
'-8bit[display 8-bit ascii characters]' \
|
||||
'1:month:(1 2 3 4 5 6 7 8 9 10 11 12 jan feb mar apr may jun jul aug sep oct nov dec)' \
|
||||
'2:year:'
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ _perl () {
|
|||
'-i-[edit <> files in place (make backup if extension supplied)]:backup file extension: ' \
|
||||
'*-I-[specify @INC/#include directory (may be used more than once)]:include path:_files -/' \
|
||||
'-l-[enable line ending processing, specifies line terminator]:output record separator in octal: ' \
|
||||
\*{-m,-M}"-[module.. executes \`use/no module...' before executing your script.]:module:_perl_m_opt" \
|
||||
\*{-m,-M}"-[module.. executes \`use/no module...' before executing your script]:module:_perl_m_opt" \
|
||||
"-n[assume 'while (<>) { ... }' loop around your script]" \
|
||||
"-p[assume loop like -n but print line also like sed]" \
|
||||
"-P[run script through C preprocessor before compilation]" \
|
||||
|
@ -29,7 +29,7 @@ _perl () {
|
|||
"-U[allow unsafe operations]" \
|
||||
"-v[print version number, patchlevel plus VERY IMPORTANT perl info]" \
|
||||
"-V-[print perl configuration information]:configuration keys:_perl_config_vars" \
|
||||
'-w[TURN WARNINGS ON FOR COMPILATION OF YOUR SCRIPT. Recommended.]' \
|
||||
'-w[turn warnings on for compilation of your script. Recommended]' \
|
||||
'-x-[strip off text before #!perl line and perhaps cd to directory]:directory to cd to:_files -/' \
|
||||
'1:Perl script:_files -/ -g "*.(p[ml]|PL)(-.)"' \
|
||||
'*::args: _normal'
|
||||
|
|
|
@ -5,11 +5,11 @@ _arguments \
|
|||
'-elvi[list Surfraw mechanisms for conquering evil]' \
|
||||
'-escape-url-args=[apply url escaping to arguments]:bool:(yes no)' \
|
||||
'(-g -graphical)'{-g,-graphical}'[get some windowed sin]' \
|
||||
'-p0rn=[Yes, yes, harder, deeper, faster, oh baybe]:bool:(yes no)' \
|
||||
'-p0rn=[yes, yes, harder, deeper, faster, oh baybe]:bool:(yes no)' \
|
||||
'-help' \
|
||||
'-quiet:bool:(yes no)' \
|
||||
'-new[start in a new window]' \
|
||||
'(-t -text)'{-t,-text}'[back to the yellow brick road]' \
|
||||
'(-q -quote)'{-q,-quote}'[Quote arguments with quote characters]' \
|
||||
'(-q -quote)'{-q,-quote}'[quote arguments with quote characters]' \
|
||||
'-version[display Surfraw version]' \
|
||||
':elvi: compadd ${${(f)"$(surfraw -elvi)"}%%[[:space:]]##--*}'
|
||||
|
|
|
@ -21,17 +21,17 @@ case "$service" in
|
|||
'-e:pattern' \
|
||||
'-O:device:_files' \
|
||||
'-M:minimum age val' \
|
||||
'-S[Disable saving scorelist]' \
|
||||
'-A[Disable saving agelist]' \
|
||||
'-Z[Disable saving countlist]' \
|
||||
'-Y[Disable missing log]' \
|
||||
'-c[Disable rating check]' \
|
||||
'-d[Disable rating updates on play]' \
|
||||
'-l[Disable rating updates on skip]' \
|
||||
'-j[Disable repeat check]' \
|
||||
'-b[Disable repeat updates on play]' \
|
||||
'-k[Disable repeat updates on skip]' \
|
||||
'-n[Disable player]' \
|
||||
'-S[disable saving scorelist]' \
|
||||
'-A[disable saving agelist]' \
|
||||
'-Z[disable saving countlist]' \
|
||||
'-Y[disable missing log]' \
|
||||
'-c[disable rating check]' \
|
||||
'-d[disable rating updates on play]' \
|
||||
'-l[disable rating updates on skip]' \
|
||||
'-j[disable repeat check]' \
|
||||
'-b[disable repeat updates on play]' \
|
||||
'-k[disable repeat updates on skip]' \
|
||||
'-n[disable player]' \
|
||||
'-t:percent' \
|
||||
'-T:percent' \
|
||||
'-C:factor' \
|
||||
|
@ -41,17 +41,17 @@ case "$service" in
|
|||
'-X:score' \
|
||||
'-N:count' \
|
||||
'-f:rating' \
|
||||
'-J[Accelerate decreases]' \
|
||||
'-K[Accelerate increases]' \
|
||||
'-u[Check age before rating]' \
|
||||
'-R[Show ratings after processing]' \
|
||||
'-V[Verbose file manipulation]' \
|
||||
'-v[Show version and exit]' \
|
||||
'-F[Skip songs with -n and -xf]' \
|
||||
'-q[Minimize vux output]' \
|
||||
'-P[Always play new songs]' \
|
||||
'-J[accelerate decreases]' \
|
||||
'-K[accelerate increases]' \
|
||||
'-u[check age before rating]' \
|
||||
'-R[show ratings after processing]' \
|
||||
'-V[verbose file manipulation]' \
|
||||
'-v[show version and exit]' \
|
||||
'-F[skip songs with -n and -xf]' \
|
||||
'-q[minimize vux output]' \
|
||||
'-P[always play new songs]' \
|
||||
'-g[print stats in xgraph format]' \
|
||||
'-h[Show summary of options]'
|
||||
'-h[show summary of options]'
|
||||
;;
|
||||
|
||||
(vuxctl)
|
||||
|
|
|
@ -45,7 +45,7 @@ _arguments \
|
|||
'--config=:configuration file:_files' \
|
||||
'--dcopserver=:DCOP server: ' \
|
||||
'--nocrashhandler[disable crash handler, allow core dumps]' \
|
||||
'--waitforwm[Wait for a WM_NET compatible window manager]' \
|
||||
'--waitforwm[wait for a WM_NET compatible window manager]' \
|
||||
'--style=:GUI style for application: ' \
|
||||
'--geometry=:client window geometry:_x_geometry' \
|
||||
'1:client command:(openURL openProfile openProperties exec move
|
||||
|
|
Loading…
Reference in a new issue