Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Bug in completing named dirs (pws-3)?



Using 3.1.5-pws-3, there seems to be something curious with named dirs
completion.  Tab completion removes the tilde.

This holds for 'zsh -f' defaults, and for any of:
 (1) compctl -D -f
 (2) compctl -g '*(D-/)' cd
 (3) compctl -K cdmatch -S '' + -g '*(D-/)' cd
      (where cdmatch is that distributed in 3.1.5-pws-3)

For these examples, cursor is at end of 'Result' string, state is
'zsh -f' with PS1 changed:

% cd ~<TAB>
Result "% cd "
% cd ~p<TAB>
Result "% cd p"
% cd ~ph<TAB>
Result "% cd phil/"

When there are multiple possible completions, extra tabs will cycle
through the names of the dirs, even though there is no longer a leading
tilde.  The above were in vi-mode, although it seems to be the case in
emacs mode too.

HTH the ZLE-hackers.
-- 
--> Phil Pennock ; GAT d- s+:+ a22 C++(++++) UL++++/I+++/S+++/H+ P++@ L+++
E-@ W(+) N>++ o !K w--- O>+ M V !PS PE Y+ PGP+ t-- 5++ X+ R !tv b++>+++ DI+ D+
G+ e+ h* r y?



Messages sorted by: Reverse Date, Date, Thread, Author