From: Wayne Davison <wayned@users.sourceforge.net>
To: Zsh Workers <zsh-workers@sunsite.auc.dk>
Subject: "keep-prefix true" feature request
Date: Thu, 12 Apr 2001 19:30:39 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.30.0104121912010.7928-100000@phong.blorf.net> (raw)
I'd like the "keep-prefix true" setting to work a little differently.
It keeps a variable from expanding only if it is the first item in the
filename, and I'd like it to avoid expanding any variable that has
text after it (like the old completion system does). In other words:
% # ... Normal compinit setup ...
% zstyle ':completion:*:expand:*' keep-prefix true
% export xpkg=/var/spool/pkg/solaris_x86
% export htd=/usr/local/etc/http/htdocs
% cd ~xpkg/apache$htd/<TAB>
This expands $htd, but I want to complete dirs without expansion.
...At least, it used to... Now it's just beeping at me unless I
change the '~' into a '$'. I'll investigate further, but my requested
feature is the same: leave the prefixed characters unchanged if there
are suffix characters present (between the cursor and the variable).
..wayne..
next prev reply other threads:[~2001-04-13 2:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-13 2:08 Automatic hash -d Wayne Davison
2001-04-13 2:30 ` Wayne Davison [this message]
2001-04-13 4:50 ` "keep-prefix true" feature request Bart Schaefer
2001-04-13 5:09 ` Automatic hash -d Bart Schaefer
2001-04-13 8:01 ` Wayne Davison
2001-04-13 15:38 ` Bart Schaefer
2001-04-13 16:47 ` Bart Schaefer
2001-04-17 9:04 ` Sven Wischnowsky
2001-04-18 5:56 ` PATCH (?): " Bart Schaefer
2001-04-18 8:29 ` Sven Wischnowsky
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=Pine.LNX.4.30.0104121912010.7928-100000@phong.blorf.net \
--to=wayned@users.sourceforge.net \
--cc=zsh-workers@sunsite.auc.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).