Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: kfmclient and MIME type completion
- X-seq: zsh-workers 20205
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Peter Stephenson <pws@xxxxxxx>
- Subject: Re: PATCH: kfmclient and MIME type completion
- Date: Mon, 26 Jul 2004 17:29:55 +0200
- Cc: zsh-workers@xxxxxxxxxx (Zsh hackers list)
- In-reply-to: <200407261346.i6QDklDr010975@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <200407261346.i6QDklDr010975@xxxxxxxxxxxxxx>
Peter wrote:
> +# This is the same style as used by zsh-mime-setup, with a different
> +# context.
> +if zstyle -a ":completion:${curcontext}:mime" mime-types type_files; then
Why do you use `mime' as the tag? It should either be empty or the same
as the tag used when adding matches (such as mime-types).
> + _wanted mimetype expl 'MIME type' \
The convention is for tags to be plural. We also seem to use hyphens to
separate words so I'd use mime-types and mime-subtypes for the tags.
> +[[ $state = *arg ]] || return 1
> +
> +# Argument to previous command.
> +
> +print $line >/tmp/tmp.out
That looks like remnant debug which we won't want.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author