From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24788 invoked by alias); 26 Feb 2018 17:49:06 -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: 23174 Received: (qmail 5867 invoked by uid 1010); 26 Feb 2018 17:49:06 -0000 X-Qmail-Scanner-Diagnostics: from mail-qk0-f182.google.com 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(209.85.220.182):SA:0(-1.9/5.0):. Processed in 1.28411 secs); 26 Feb 2018 17:49:06 -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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: mikachu@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=l+qTUSuzLnQg3pedngk7q+uNn+3tzfmzMZdHkrAij94=; b=MTQEYj6rknFFDIieGYG3RX0N/8zF91++pTzw5sJ3uIJlbLRe8xT1P919TejUcvRiwm gokzEKhOfGJbhNFsh8+xNucTUE4MjfvJfnwtmGeV/6CT2jYSZVe03IbX9a4E7ZzuLl7q IQD82Ih6s7hbkEF+5E8Ll0kQr7aUFLHP0TkUhyg/cOm3mR298mak+AwmgN4USdJYOhbH 2nEcwA0BxFbSxgw0mExE2pw+IHxH7USbgjOG4sGQskw8TbN8+9zpzbf6BDCYFrob3DDQ C+eZheddIr6zvP2o6Br+0GmQ4eioRJKSXqJ+cdp8r7dv6Jw4yOfH/rsT8dA01OJiJNGO UUUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=l+qTUSuzLnQg3pedngk7q+uNn+3tzfmzMZdHkrAij94=; b=UN3YJHDRQVvNKv5AYg+kRE9vpP3IZn1CPryhRkUApaWZ9njK+Cmd17x1CeicSt6A3e EZh+ZNE+jSNv0oCmgvv183HDOi/3j89nBIzDtCYsTi9AE7q4DTkY+e1bibR2wKGrGWzA LHxsmoGdg6uD8jgKMWUzQmLJZGc1Hr5h2X/lBTIIzOu0d15HMsr7F7TGVDXCZNCASonD Z+dRje0CEEwjCitngPl+pTvc432Kiel+SenKlEn7Cscr930tYx3Mtpvy97lFs1+mJcC2 ZULfwlZ4KgQSUXJKNpwsqWMnqqXjxYN90bgAiiw4Afz82uHt4QxwnzrOI3tHkXaTuQQi BToQ== X-Gm-Message-State: APf1xPBOuhfHuVdZ/kpJ1FDfNzeA3fbZTLJasb0X1hpdp2fh72nc9F4K on5Q+IjFwrIHONocE0YpHgRsMDxYxM5I3Xtvl90= X-Google-Smtp-Source: AG47ELvDJZVhjqWCrlyfxfU6aDVJ2vqqBOeERQ+VpMQOSInj42obmQEzBnKaQeKgKv1XE3Sy+MRvECkFT6lDrPdoKnM= X-Received: by 10.55.80.6 with SMTP id e6mr17286037qkb.187.1519667341776; Mon, 26 Feb 2018 09:49:01 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20180226144726.1d99a314@pwslap01u.europe.root.pri> References: <20180224193420.0d7d7d5c@ntlworld.com> <20180226144726.1d99a314@pwslap01u.europe.root.pri> From: Mikael Magnusson Date: Mon, 26 Feb 2018 18:49:01 +0100 Message-ID: Subject: Re: Dynamic named directories and completion To: Peter Stephenson Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" On Mon, Feb 26, 2018 at 3:47 PM, 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.) In this type of situation I usually explicitly press expand-word (^X* by default I believe). -- Mikael Magnusson