From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 367 invoked by alias); 7 Jan 2013 10:01:52 -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: 17534 Received: (qmail 11210 invoked from network); 7 Jan 2013 10:01:40 -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: dsf Date: Mon, 7 Jan 2013 10:01:18 +0000 (UTC) Message-ID: X-Complaints-To: usenet@ger.gmane.org Summary: completer that first expands global aliases X-Gmane-NNTP-Posting-Host: c83-249-23-194.bredband.comhem.se User-Agent: slrn/1.0.1 (Linux) I have a nice little recent-files completer, see below. (found here: http://michael.stapelberg.de/Artikel/zsh_recent_completion ) What I would like to add to this, is for it to expand global aliases inline, before trying to complete (and thus ending up completing files in my aliased directory). I started trying to meld _generic and _expand_alias, but with my lack of fluency in zsh, I just made a mess :) Any help out there? Is there perhaps some generic way for having this done for all completion? A zstyle for _main_complete? # 'ctrl-x r' will complete the 12 last modified (mtime) files/directories zle -C newest-files complete-word _generic bindkey '^Xr' newest-files zstyle ':completion:newest-files:*' completer _files zstyle ':completion:newest-files:*' file-patterns '*~.*(omN[1,12])' zstyle ':completion:newest-files:*' menu select yes zstyle ':completion:newest-files:*' sort false zstyle ':completion:newest-files:*' matcher-list 'b:=*' # important