From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24765 invoked by alias); 25 Feb 2014 18:55:56 -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: 18516 Received: (qmail 14538 invoked from network); 25 Feb 2014 18:55:49 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Authority-Analysis: v=2.1 cv=HYUtEE08 c=1 sm=1 tr=0 a=LABqqz4FjftETxLTyB39gw==:117 a=LABqqz4FjftETxLTyB39gw==:17 a=HIA4oEAs-AEA:10 a=XZlMLTAEtugA:10 a=8nJEP1OIZ-IA:10 a=mQ-BAqX58OUA:10 a=JO5Le4s2glRRyX7BjZsA:9 a=wPNLvfGTeEIA:10 Message-id: <530CE01D.9080201@eastlink.ca> Date: Tue, 25 Feb 2014 10:25:33 -0800 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20131103 Icedove/17.0.10 MIME-version: 1.0 To: zsh-users@zsh.org Subject: Re: completion fails if dir referenced via variable. References: <140204073937.ZM21329@torch.brasslantern.com> <52F1146D.5020801@eastlink.ca> <140204194650.ZM21787@torch.brasslantern.com> <52F283E8.4050500@eastlink.ca> <530CB4E8.8050305@eastlink.ca> <140225094657.ZM2214@torch.brasslantern.com> In-reply-to: <140225094657.ZM2214@torch.brasslantern.com> Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit On 02/25/2014 09:46 AM, Bart Schaefer wrote: > 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. I tried the above and a few other things, but nothing improves the situation. So far the most useful line is: zstyle ':completion:*' completer _expand _complete _correct _approximate It seems intuitive that one should be able to have more than one expansion and/or completion per line, not just one, does it not? Why the artificial limitation? As a nasty work around, I can hit TAB once, which expands the variable, store the line to history, recall the line from history, and hit TAB again which completes the filename, but that seems like a whole lot of trouble. Tell compsys it can't go home until all it's work is done ;-) ... mind, you say "until you have accepted" ... can I 'accept' one expansion/completion and have it go on to the next? >