From: reckoner <reckoner@gmail.com>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: zsh-users@zsh.org
Subject: Re: How to change order of completions?
Date: Wed, 03 Apr 2013 18:09:18 -0700 [thread overview]
Message-ID: <515CD2BE.1010701@gmail.com> (raw)
In-Reply-To: <130403153545.ZM1451@torch.brasslantern.com>
On Wednesday, April 3, 2013 3:35:45 PM, Bart Schaefer wrote:
> On Apr 3, 2:39pm, reckoner wrote:
>>
>> > zstyle ':completion:*:vi(|m):*' file-patterns \
>> > '*.tex:tex-files' '*.(c|cpp|c++|h|py):src-files' '*:all-files'
>>
>> This works great except when I have
>>
>> % vi () { gvim $* }
>>
>> as a user-defined function.
>
> Works for me. Do you perhaps also have an alias for "vi"? What do you
> get from
>
> % vi <ctl-x>h
>
> ??
>
> I just set up a test (513 is me pressing ctl-x h):
>
> ----------
> schaefer<511> which vi
> vi () {
> print $*
> }
> schaefer<512> zstyle -L | grep file-patterns
> zstyle ':completion:*:vi(|m):*' file-patterns '*.tex:tex-files' '*.(c|cpp|c++|h):src-files' '*:all-files'
> schaefer<513> vi
> tags in context :completion::complete:vi::
> tex-files (_files _default (eval))
> src-files (_files _default (eval))
> all-files (_files _default (eval))
> ----------
>
>
>> % vi<TAB>
>
> I presume you mean for there to be a space between vi and <TAB>.
Yes. You are right! I had a stray alias.
Thanks again!
next prev parent reply other threads:[~2013-04-04 1:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-03 21:39 reckoner
2013-04-03 22:35 ` Bart Schaefer
2013-04-04 1:09 ` reckoner [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-04-01 14:27 reckoner
2013-04-01 15:04 ` Bart Schaefer
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=515CD2BE.1010701@gmail.com \
--to=reckoner@gmail.com \
--cc=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).