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

Re: completion fails if dir referenced via variable.



On Feb 25,  7:21am, Ray Andrews wrote:
}
} if I type " cp $t1/filen [tab] " what happens is that 
} " $t1 " expands just fine followed by " filen ". On the line below it 
} says: " Completing all expansions ", but nothing happens.

This is the _expand completer at work.  It detects that there is a
variable that could be expanded, expands it, and returns 0, which
tells compsys that it doesn't need to try any other completions
until you have accepted this expansion.

You could try swapping the order of your completer zstyle from
_expand _complete to _compete _expand, or (if you have the default
bindings) you may be able to press ^Xn (_next_tags) to skip over
_expand and try _complete.



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