From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19318 invoked by alias); 4 Aug 2015 17:57:32 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 35978 Received: (qmail 10162 invoked from network); 4 Aug 2015 17:57:28 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.0 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type; bh=5Af4dKBsUYw4JX9sCrbEXFG+lq9MHeigw33RnPjdydE=; b=dTt/oeVdY0ZikrCbBRxCpfRHiLW3P4orwI2mkS47j9zheO1+dUIcCdMgjjjO/XRxse 4uQDEC6bBULT8xq0pxoReRJKhq9sp2JhB1H47/iOV4GL5iLecwnSJ9/wr/HFjAeVdtsk Qo4tcFesim53EuCZJgBehCJSzlzk8JcLqZEYYvM+iX6RthwQKg2ppPBKPRHn2zkhQXIv Zjc9rAakkAKudvApGEGkzEGQzMTI3UflxdIPLBcIth5qn7jdqitQ/uJDMd/HLDTDKWFu DQKta2N2b4RI7FiY0KzhqVEJgT6my1enQuR4Nek+154xx78g/QIuj66IuPxJaXLjfct/ D3GA== X-Gm-Message-State: ALoCoQkhmi71I1oQMqFiBPahKlzfJgMC8TOcfq/sWx+Ru7BcAI8VDAJvvyswWZ51eSy1yhFgNk0S X-Received: by 10.152.19.67 with SMTP id c3mr4979514lae.4.1438711044601; Tue, 04 Aug 2015 10:57:24 -0700 (PDT) MIME-Version: 1.0 From: Will Leinweber Date: Tue, 4 Aug 2015 19:56:45 +0200 Message-ID: Subject: help with a completion script? To: zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 I have a medium-to-small completion script here: http://git.io/vOaxv . I've read through several tutorials, other scripts, and zshcompsys(1), but there is one main thing I haven't been able to figure out. The first argument to this binary is either one of several subcommands, and that is all fine, however it can also be a *.cr file. I tried adding in _files to the subcommand list, but instead of showing files it shows just a literal * character and ends there. Does anyone know of example completion scripts that do both subcommands and files as the first argument, or know how to do this?