From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20612 invoked by alias); 18 Sep 2014 09:43:13 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19103 Received: (qmail 10925 invoked from network); 18 Sep 2014 09:43:01 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Message-ID: <541AA918.8060503@thregr.org> Date: Thu, 18 Sep 2014 11:42:48 +0200 From: Yuri D'Elia User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.0 MIME-Version: 1.0 Newsgroups: gmane.comp.shells.zsh.user To: Bart Schaefer , zsh-users@zsh.org Subject: Re: rsync --progress stops completion References: <2002755.9ryFYYVtTN@note> <5418786F.8030001@thregr.org> <140916175124.ZM5742@torch.brasslantern.com> <54194198.2010607@thregr.org> <140917085133.ZM6725@torch.brasslantern.com> In-Reply-To: <140917085133.ZM6725@torch.brasslantern.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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.