From: Wayne Davison <wayned@users.sourceforge.net>
To: Zsh Workers <zsh-workers@sunsite.auc.dk>
Subject: Automatic hash -d
Date: Thu, 12 Apr 2001 19:08:29 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.30.0104121849180.7928-100000@phong.blorf.net> (raw)
In the old completion system, I can complete a path that includes a
variable prefixed with a ~ without having to first use an explicit
hash -d. In the new completion system, this only works if I complete
just the ~VAR name first. In other words:
# (Assume that there are files in /var/www/html/subdir)
zsh -f
% export w=/var/www/html
% ls ~w/subdir/<TAB> # Completes as expected
% hash -dv
w=/var/www/html
% exit
zsh -f
% export w=/var/www/html
% autoload -U compinit
% compinit
% zstyle ':completion:*' completer _expand _complete
% bindkey '\t' complete-word
% ls ~w/subdir/<TAB> # Beeps. Nothing added to hash -d.
% ls ~w<TAB> # Expands w. w added to hash -d.
% ls ~w/subdir/<TAB> # Now this works (as expected).
I can work around this, but it would be nice to have the auto hash -d
code work the same in each completion system.
..wayne..
next reply other threads:[~2001-04-13 2:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-13 2:08 Wayne Davison [this message]
2001-04-13 2:30 ` "keep-prefix true" feature request Wayne Davison
2001-04-13 4:50 ` 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.0104121849180.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).