From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13756 invoked by alias); 9 Jan 2013 07:30:19 -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: 17542 Received: (qmail 29637 invoked from network); 9 Jan 2013 07:30:14 -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,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at m.gmane.org designates 80.91.229.3 as permitted sender) X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: Daniel Subject: Re: completer that first expands global aliases (Re: dsf) Date: Wed, 9 Jan 2013 07:29:45 +0000 (UTC) Message-ID: References: <1357650387.9070.YahooMailNeo@web171903.mail.ir2.yahoo.com> <20130108170145.GA4762@kelebek.lublin.se> <130108102404.ZM4596@torch.brasslantern.com> <130108204025.ZM4816@torch.brasslantern.com> X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c83-249-23-194.bredband.comhem.se User-Agent: slrn/1.0.1 (Linux) On 2013-01-09, Bart Schaefer wrote: > } > zstyle -e ':completion:most-recent-*::::' completer \ > } > 'compprefuncs=(_expand_alias) reply=(_menu _complete _match)' > } > } Ah, I understand how this is supposed to work; both your examples. Though, > } neither of them does work. I have to press ^Xm twice, first to expand my DL, > } and a second time to get a first file match. > I think you're never going to get precisely the behavior you want, because > aliases have to be entire words. For example, if without using completion > at all you gave the command I hear you. I had this gut feeling about aliases and words. But what was your _expand_alias_hack returning non-0 and attempt with compprefunc() supposed to do then? I though they would manage to have the alias expanded and then continue with completion. But as I said, they stop short of actually completing. But the expansion is done, and does NOT leave any trailing space/word boundary...