Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: kfmclient and MIME type completion
- X-seq: zsh-workers 20207
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Peter Stephenson <pws@xxxxxxx>
- Subject: Re: PATCH: kfmclient and MIME type completion
- Date: Tue, 27 Jul 2004 13:40:56 +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>
[I'm resending this because it didn't come through yesterday. Sorry if
it now comes through twice.]
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