Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: compctl and firefox
- X-seq: zsh-users 15557
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: compctl and firefox
- Date: Thu, 18 Nov 2010 10:13:01 -0800
- In-reply-to: <87eiaj704a.fsf@xxxxxxxxx>
- 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>
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'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author