From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20268 invoked by alias); 26 Feb 2018 16:44:40 -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: 23173 Received: (qmail 27298 invoked by uid 1010); 26 Feb 2018 16:44:40 -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 3.427467 secs); 26 Feb 2018 16:44:40 -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 11:44:14 -0500 Message-ID: References: <20180224193420.0d7d7d5c@ntlworld.com> <20180226144726.1d99a314@pwslap01u.europe.root.pri> 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: <20180226144726.1d99a314@pwslap01u.europe.root.pri> Content-Language: en-US On 2/26/18 9:47 AM, Peter Stephenson wrote: > On Mon, 26 Feb 2018 08:53:00 -0500 > Scott Frazer wrote: >> Yes, M-x complete-word does indeed work! I still need to try some of the >> patches from later in this thread ... > > Glad it's not totally shrouded in obscurity... > > Would generally recommend the combination of complete-word as binding > for tab + use of the expand completer (which I fixed somewhere else in > this thread but am still to commit) as this is much more configurable. > > To turn it on you'd do something like > > zstyle ':completion:*' completer _expand _complete _ignored > bindkey '^i' complete-word > > but there are many more exotic possibilities. > > I'll have a look at expand-or-complete word, too. > > (Ideally, in fact, whether or not we expand ~[whatever] needs > configuring --- because this is dynamic completion you might decide to > expand it to freeze the path for future use. I'll look at that if I get > the chance. This is the sort of reason for using the expand completer > I'm talking about.) > > pws > This plus the small patch you sent earlier for _expand works, thanks! I feel like expand-or-complete should work too, but as long as the _expand patch makes it into the final code I'm happy. Thanks again, Scott