From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users <zsh-users@sunsite.dk>
Subject: Re: Adding a prefix to certain filename completions
Date: Tue, 05 Jul 2005 17:01:57 +0000 [thread overview]
Message-ID: <1050705170157.ZM13396@candle.brasslantern.com> (raw)
In-Reply-To: <20050704193711.GF6330@puritan.pnetwork>
On Jul 4, 9:37pm, Nikolai Weibull wrote:
} Subject: Adding a prefix to certain filename completions
}
} Vim has issues with files that begin with a + (or two +s for that
} matter), so I'd like to add a ./ prefix to such files when completing.
YOu can get most of the way there with this:
zstyle -e ':completion:*:vim:*' fake-files 'reply=("$PWD:$(print ./+*)")'
zstyle ':completion:*:vim:*' matcher 'b:+=./+'
However, all that does is offer the ./+* as alternatives, it doesn't
remove the originals. The trouble is that file completion is sensitive
to directory separators, so as soon as you introduce the slash, the
rules begin to apply to the stuff on the right of the slash rather
than to the entire string.
You'd be better off if there were some other way to protect the + from
interpretation by vim.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
next prev parent reply other threads:[~2005-07-05 17:02 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-04 19:37 Nikolai Weibull
2005-07-05 0:13 ` William Scott
2005-07-05 8:07 ` Nikolai Weibull
2005-07-05 15:09 ` William Scott
2005-07-05 15:23 ` William Scott
2005-07-05 4:23 ` Thomas Köhler
2005-07-05 8:09 ` Nikolai Weibull
2005-07-05 14:25 ` William Scott
2005-07-05 17:28 ` Nikolai Weibull
2005-07-05 16:56 ` John Reese
2005-07-05 17:07 ` William Scott
2005-07-06 5:00 ` Bart Schaefer
2005-07-06 11:31 ` Nikolai Weibull
2005-07-07 2:02 ` Nikolai Weibull
2005-07-07 5:40 ` Bart Schaefer
2005-07-07 7:21 ` Dan Nelson
2005-07-07 10:58 ` Nikolai Weibull
2005-07-07 11:18 ` Peter Stephenson
2005-07-07 11:58 ` Doug Kearns
2005-07-07 12:11 ` Nikolai Weibull
2005-07-07 12:54 ` Peter Stephenson
2005-07-07 19:00 ` Thomas Köhler
2005-07-07 14:51 ` William Scott
2005-07-07 15:57 ` Nikolai Weibull
2005-07-08 1:24 ` Bart Schaefer
2005-07-08 10:12 ` Nikolai Weibull
2005-07-05 17:01 ` Bart Schaefer [this message]
2005-07-05 19:14 ` Nikolai Weibull
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=1050705170157.ZM13396@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-users@sunsite.dk \
/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).