From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29651 invoked by alias); 27 Feb 2012 10:28:30 -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: 16797 Received: (qmail 762 invoked from network); 27 Feb 2012 10:28:28 -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.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.214.43 as permitted sender) Received-SPF: pass (google.com: domain of mrichter.list@googlemail.com designates 10.204.133.212 as permitted sender) client-ip=10.204.133.212; Authentication-Results: mr.google.com; spf=pass (google.com: domain of mrichter.list@googlemail.com designates 10.204.133.212 as permitted sender) smtp.mail=mrichter.list@googlemail.com; dkim=pass header.i=mrichter.list@googlemail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :x-enigmail-version:content-type:content-transfer-encoding; bh=a1wfeQrSdlRANM9eaFRbQlsejiRRsi+eTvStKBr+Ff8=; b=QxWSf4gLpzay2+fYCBChmKChBsn86rawyTkdbiL/J8nUhZhGYd+i0pa2CFFnGPzPaH WLOeoMquZBsEmkkGDK1sIjz8fCC3DX2AAOv8JfSI9GMyYp2M3fR/HOoD/nnQTZ7wkQ2K O0yDs0Ke++KJhrN4Tqc5wbKnoZsTgXSzEYBjg= Message-ID: <4F4B58FE.3070008@googlemail.com> Date: Mon, 27 Feb 2012 11:20:46 +0100 From: Martin Richter User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.27) Gecko/20120216 Thunderbird/3.1.19 MIME-Version: 1.0 To: zsh-users@zsh.org Subject: context for globbing qualifiers based on command X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi there, unfortunately I'm not too well familiar with the syntax of zstyle and setting appropriate contexts to achieve the following (although there were quite some nice examples on this list now and then). Suppose there is a function foo which we can use as a globbing qualifier a la print -l *(e:foo) maybe even such that it takes an argument print -l *(e:foo 5) Is it possible to tweak the completion such that shell functions are grouped at the top when pressing TAB when using (:e...) on a given command? print -l *(e:TAB --> gives a lot of possible functions etc but special_command *(e:TAB gives only shell function matching some regexp or gives only the single function 'foo' or members of an array of functions? Thanks, Martin PS: Just in case it is not clear what I mean by the above, here the example I need it for: special_command needs filenames as arguments in which two numbers appear. I now want to use only those files in which the numbers have a certain sum (one could also think of product or whatsoever) So there are shell functions (aka the above `foo') sum_equals and product_equals and I want special_command file_<->_<->.dat*(:TAB to give only sum_equals and product_equals (or at least group them together and show them at the top)