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

Re: Any Hints on showing ~-evaluation ?



>The expand-word zle function should probably do this.  Unfortunately
>expanding tilde substitutions is deliberately disabled since if one wants
>to expand ~/$VAR she usually do not want to see her expanded home
>directory but only wants to expand $VAR.  It is easy to change this
>behaviour but what is the desired behaviour here?  E.g. expand everything
>except ~/ or expand only ~+ and ~- etc.  Which do you prefer?

It might be nice to have another ZLE function to do this, but I don't
think it would be very usable.  More practically, make list-expand do
all expansions, including tilde expansion.  I often use list-expand
(which I have bound to ^G in both command and insert modes) to see
exactly what a glob pattern will expand to, and it would seem intuitive
for it to do tilde expansion too.

-zefram




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