From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 737 invoked by alias); 26 Feb 2018 13:53:21 -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: List-Unsubscribe: X-Seq: 23170 Received: (qmail 2146 invoked by uid 1010); 26 Feb 2018 13:53:21 -0000 X-Qmail-Scanner-Diagnostics: from 195.159.176.226 by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(195.159.176.226):SA:0(2.6/5.0):. Processed in 0.957156 secs); 26 Feb 2018 13:53:21 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: ** X-Spam-Status: No, score=2.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FORGED_MUA_MOZILLA,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,NML_ADSP_CUSTOM_MED,RDNS_NONE autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: gcszu-zsh-users@m.gmane.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: Scott Frazer Subject: Re: Dynamic named directories and completion Date: Mon, 26 Feb 2018 08:53:00 -0500 Message-ID: References: <20180224193420.0d7d7d5c@ntlworld.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@blaine.gmane.org User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 In-Reply-To: <20180224193420.0d7d7d5c@ntlworld.com> Content-Language: en-US On 2/24/18 2:34 PM, Peter Stephenson wrote: > On Fri, 23 Feb 2018 09:42:37 -0500 > Scott Frazer wrote: >>>> cd ~[ccc]/ >>>> >>>> zsh doesn't give me options for directories under ccc, it thinks '/' is >>>> the command I'm trying to complete. Is there a way to make this work? >>> >>> I don't see anything wrong in your code and for me, it works as you >>> expect (zsh 5.4.2). Does "echo ~[ccc]" returns the right value? >>> >> >> Yes, "echo ~[ccc]" works correctly. I'm using zsh 5.3 so maybe there is some >> difference there. Perhaps there is some difference in options/modules/etc. If >> I cut my .zshrc down to a minimum: > > There's something screwy here, certainly. I don't think it should be > necessary to modify _path_files in 5.3, though, there are certainly > cases where you get the right answer, and I think the logic that currently > handles ~ at the start should do the right thing here. > > I've a theory it's down to the completion widget in use, i.e. how > completion gets started up. If instead of hitting tab, you type x > complete-word --- or instead bind that widget, > > bindkey '^i' complete-word > > and then use tab --- does it start working? The default is > expand-or-complete, and I believe the expand bit is nixing the > completion in this case. (Except we don't really have the word "nix" > this side of the Atlantic, so I may be talking nonsense, but it sounded > good.) > > pws > Yes, M-x complete-word does indeed work! I still need to try some of the patches from later in this thread ... Scott