zsh-workers
 help / color / mirror / code / Atom feed
From: Nikolai Weibull <lone-star@home.se>
To: zsh-workers@sunsite.dk
Subject: Re: some completion functions :)
Date: Wed, 23 Jul 2003 22:13:47 +0200	[thread overview]
Message-ID: <20030723201347.GA25888@puritan.pcp.ath.cx> (raw)
In-Reply-To: <1058990237.12981.5.camel@localhost>

[-- Attachment #1: Type: text/plain, Size: 878 bytes --]

On Wed, Jul 23 2003, baptiste daroussin wrote something resembling:
> Hi,
> I've written some completion function for :
> rar, unrar (_rar)
> oggenc, ogginfo, oggdec, ogg123 (_vorbis)
> I've updated _links to work with links >= 2.X
> I've improved _pkgtool
> Sory, no path because I've overwritten the different scripts :(
>
> I've tested it under gentoo 1.4 with zsh 4.0.6 and slackware 9.1 with
> zsh 4.0.7 and zsh 4.1.1
>
> Normaly all works :)
>
nice...here's my ogg123 completion function.  i think it is a bit more
complete than yours.  you may want to include some of them perhaps?

enjoy,
	nikolai

--
::: name: Nikolai Weibull    :: aliases: pcp / lone-star       :::
::: born: Chicago, IL USA    :: loc atm: Gothenburg, Sweden    :::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,php,war3  :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}

[-- Attachment #2: _ogg123 --]
[-- Type: text/plain, Size: 1642 bytes --]

#compdef ogg123
  
# this still needs fixing with the --device-option code 

local expl
      
_arguments \
	'--audio-buffer[size of output buffer]:kilobytes:' \
	{'(-@)--list','(--list)-@'}'[playlist to play from]:playlist:_files' \
	{'(-b)--buffer','(--buffer)-b'}'[size of input buffer]:kilobytes:' \
	{'(-p)--prebuffer','(--prebuffer)-p'}'[prebuffer percentage]:percent:' \
	{'(-d)--device','(--device)-d'}'[output device]:device:((null\:"discards all data" oss\:"Open Sound System" sun\:"Sun Audio" alsa\:"Advanced Linux Sound Architecture" irix\:"IRIX audio" arts\:"aRts Sound Daemon" esd\:"Enlightened Sound Daemon" au\:"Sun audio file" raw\:"Raw sample" wav\:"WAV file"))' \
	{'(-f)--file','(--file)-f'}'[output file for file devices]:file:_files' \
	{'(-h)--help','(--help)-h'}'[show help]' \
	{'(-k)--skip','(--skip)-k'}'[skip into file]:seconds:' \
	{'*--device-option','*-o'}'[assign device option values]:devopts:->devopts' \
	{'(--verbose -v -q)--quiet','(--verbose -v --quiet)-q'}'[quiet mode]' \
	{'(-V)--version','(--version)-V'}'[display version information]' \
	{'(--quiet -q)*--verbose','(--quiet -q)*-v'}'[increase verbosity]' \
	{'(-x)--nth','(--nth)-x'}'[block decode interval]:number:' \
	{'(-y)--ntimes','(--ntimes)-y'}'[block repeat count]:number:' \
	{'(-z)--shuffle','(--shuffle)-z'}'[play input audio in random order]' \
	'*:files:->files' && return 0

case "$state" in
	files)
	_description files expl 'ogg vorbis file'
	_files "$expl[@]" -g '*.ogg'
	;;
	devopts)
	_setup devopts
	_tags devopts
	_description devopts expl 'device options'
	compadd "$expl[@]" -S : - dsp dev card buf_size host byteorder
	;;
esac

  reply	other threads:[~2003-07-23 20:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-23 19:57 baptiste daroussin
2003-07-23 20:13 ` Nikolai Weibull [this message]
2003-07-23 20:43 ` baptiste daroussin
2003-07-24 12:07 ` Oliver Kiddle

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=20030723201347.GA25888@puritan.pcp.ath.cx \
    --to=lone-star@home.se \
    --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).