From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: Re: compctl and firefox
Date: Thu, 18 Nov 2010 10:13:01 -0800 [thread overview]
Message-ID: <101118101301.ZM1245@torch.brasslantern.com> (raw)
In-Reply-To: <87eiaj704a.fsf@gmail.com>
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'
next prev parent reply other threads:[~2010-11-18 18:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-18 3:59 Bruno Tavernier
2010-11-18 18:13 ` Bart Schaefer [this message]
2010-11-19 2:59 ` Bruno Tavernier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=101118101301.ZM1245@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).