Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: compctl and firefox



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