Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: compctl and firefox
- X-seq: zsh-users 15558
- From: Bruno Tavernier <tavernier.bruno@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: compctl and firefox
- Date: Fri, 19 Nov 2010 11:59:16 +0900
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=KrObnissJttgi7MmK3THqs3HN5FdCkEnrFq0m3jLDBY=; b=HSZmUsCSTP+5ySjDlnsbTls63/a260x+XL49fDIQYoAH3cDp8Xh9CzCBDxgf+RRibv Mj0FgxuLAzB9TcKm68QktoRETP8Um/+OHxhxPExXQ9W6+OLOfh8amRNvxOpEdT/+RIBc XfJqfoyDwtou+k3CEesIFJeGujyNdhvMD4se8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-type; b=rd5m21i9ZDNV4SC8fdrNjxsHt5fyLeR7qf8Pno+yA0BAPuE9b38I0jNdwkW1e7rtpj xOXSD0fAxr2OEy5fJPTntPLcfU8WEjWINU9mFAopKBPrDBcSC1MW/Xr3jPILy64UiVFX /W678bpCZWWEXqIXBySWjrkTVApgzTRMoglNE=
- In-reply-to: <101118101301.ZM1245@xxxxxxxxxxxxxxxxxxxxxx> (Bart Schaefer's message of "Thu, 18 Nov 2010 10:13:01 -0800")
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <87eiaj704a.fsf@xxxxxxxxx> <101118101301.ZM1245@xxxxxxxxxxxxxxxxxxxxxx>
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> writes:
> On Nov 18, 12:59pm, Bruno Tavernier wrote:
> }
> } In my .zshrc, I have this
> } ,----
> } | compctl -g '*(-/) *.html' firefox
> } | compctl -g '*(-/) *.html' w3m
> } `----
>
> Are you certain that you're even using the compctl completions? Most
> configurations nowadays use what we call "compsys", and have compctl
> as a fallback at best.
>
> } w3m works fine (i.e. only html files are listed)
> } ,----
> } | % w3m <TAB>
> } | % w3m
> } | test.html
> } `----
>
> If instead of <TAB> you type <ctl+x>h what do you see? If similar to:
>
> tags in context :completion::complete:w3m::
> argument-rest options (_arguments _w3m (eval))
> ...
>
> then you need to use styles instead of compctl commands to control the
> patterns used for file matching, like this:
>
> zstyle ':completion::complete:firefox:*:' file-patterns '*(-/) *.html'
zstyle does the job! These compctl were probably remains of an old
config. My apologies for the noise.
Thank you Bart!
--
Bruno
Messages sorted by:
Reverse Date,
Date,
Thread,
Author