From: Baptiste Daroussin <daroussi@ece.fr>
To: zsh-workers@sunsite.dk
Subject: small patches for ZSH Completion function
Date: Thu, 04 Dec 2003 12:27:10 +0100 [thread overview]
Message-ID: <1070537230.2698.12.camel@localhost> (raw)
[-- Attachment #1: Type: text/plain, Size: 529 bytes --]
Hi,
The following patches are for :
chown:
add linux to the OSTYPE that need suffix : after users because the
suffix . is deprecated and in the last version of chown on my gentoo
does not work anymore.
links:
added a _call_program to get a list of available drivers for -driver
option
mplayer:
added the new matroska (mkv mka) format in list (supported since the
1.0pre2 version of mplayer) and ogm, ogg (supported since ??)
hope it helps (this time I've made patches :) )
--
Baptiste Daroussin <daroussi@ece.fr>
[-- Attachment #2: chown-zsh.patch --]
[-- Type: text/x-patch, Size: 322 bytes --]
--- _chown-orig 2003-11-17 15:26:25.000000000 +0100
+++ _chown 2003-12-04 12:19:55.000000000 +0100
@@ -13,7 +13,7 @@
fi
_groups && return 0
else
- if [[ $OSTYPE = (solaris*|hpux*|*bsd*) ]]; then
+ if [[ $OSTYPE = (solaris*|hpux*|*bsd*|linux*) ]]; then
suf=':'
else
suf='.'
[-- Attachment #3: links.patch --]
[-- Type: text/x-patch, Size: 1130 bytes --]
--- _links-orig 2003-11-17 15:26:25.000000000 +0100
+++ _links 2003-12-03 22:32:44.000000000 +0100
@@ -3,12 +3,18 @@
local curcontext="$curcontext" state line
typeset -A opt_args
+_list_driver () {
+ vals=(${=${${${(f)"$(_call_program links-graphics-driver links -driver help 2>&1)"}[-1]}//','/''}} )
+ _describe -t links-graphics-driver 'graphic drivers' vals && ret=0
+
+}
+
_arguments -C \
'(-help)-anonymous[restrict links so that it can run on an anonymous account]' \
'(-help)-assume-codepage[use the given codepage when the webpage did not specify its]:codepage:' \
'(-help)-async-dns[asynchronous DNS resolver]:bool:((0\:on 1\:off))' \
'(-help)-download-dir[default download directory]:_files -/' \
- '(-help)-driver[graphics driver to use]:driver:(x svgalib fb pmshell atheos)' \
+ '(-help)-driver[graphics driver to use]:graphic drivers:_list_driver' \
'(-help)-dump[dump the page as pure text]' \
'(-help)-format-cache-size[number of formatted document pages cached]:pages:' \
'(-help)-ftp-proxy[host and port number of the FTP proxy, or blank]:hostport:_hosts' \
[-- Attachment #4: mplayer-zsh.patch --]
[-- Type: text/x-patch, Size: 541 bytes --]
--- _mplayer-orig 2003-11-17 15:26:25.000000000 +0100
+++ _mplayer 2003-12-03 22:52:57.000000000 +0100
@@ -115,7 +115,7 @@
_tags files urls
while _tags; do
_requested files expl 'video file' _files -g \
- "*.(#i)(avi|mp3|mpg|mpe|mpeg|m1v|mov|asf|vob|mjpg|wma|wmv|asx|qt|rm)" && ret=0
+ "*.(#i)(avi|mp3|mpg|mpe|mpeg|m1v|mov|asf|vob|mjpg|wma|wmv|asx|qt|rm|mkv|mka|ogm|ogg)" && ret=0
if _requested urls; then
while _next_label urls expl url; do
_urls "$expl[@]" && ret=0
next reply other threads:[~2003-12-04 12:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-04 11:27 Baptiste Daroussin [this message]
2003-12-04 14:59 ` Oliver Kiddle
2003-12-04 17:17 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1070537230.2698.12.camel@localhost \
--to=daroussi@ece.fr \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).