zsh-workers
 help / color / mirror / code / Atom feed
* Automatic hash -d
@ 2001-04-13  2:08 Wayne Davison
  2001-04-13  2:30 ` "keep-prefix true" feature request Wayne Davison
  0 siblings, 1 reply; 10+ messages in thread
From: Wayne Davison @ 2001-04-13  2:08 UTC (permalink / raw)
  To: Zsh Workers

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..


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2001-04-18  8:29 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-13  2:08 Automatic hash -d Wayne Davison
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

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).