Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: rsync --progress stops completion
On 09/17/2014 05:51 PM, Bart Schaefer wrote:
> Sure, just add _files to the end of your completer zstyle, e.g.:
>
> zstyle ':completion:*' completer _oldlist _expand _complete _files
That would be the heavy handed approach, however I think it would be a
better approach (in general) to ignore unknown command-line arguments in
completers (just treat them as normal 1-arg switches without
parameters), or at least with a global setting. There's always some
desync between the real parameters and the completer, but that's not a
reason to give up completion so quickly.
Some sort of visual clue that the completion stopped because of an error
could also be helpful maybe?
> There are other tricks possible, e.g., to arrange that _files is called
> only if you hit tab twice, but I'm going to let somebody else work that
> solution out.
I remember this idea from a long ago ;)
I'm pretty sure there is something in the ML archive already.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author