From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22414 invoked by alias); 3 Sep 2013 11:11:57 -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: 17969 Received: (qmail 21840 invoked from network); 3 Sep 2013 11:11:52 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.128.179 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=Ex2kpk3tTAM02ypoQR8alvfMFK8lZKofUPBYTKKu8qw=; b=np8HI5edBaVSk1yykDVfs2fFBvg5nCCZtNfnkjOQ0xSYgWcNcikObvb6OKkSqGpLLs 4PaF6VQRxfVTnCcvYB28/Jx5MAXOeUVEMqSMaGqnJ/1zm3CvIbo4U+Z3tKiEYTR7QIYn vO9TXnbVwnfKNqFuADY6SYmulrv50mKfPe6RAFOUZ683ueq2b1mMBsOpIbysVmKWztTp rAT4RUgAhUdIX7DDm9guiPIfmpXD+rfEC8TZ2pPDg2sYJjfWet4WHARlAUyGnxHN4n6B +TKv+Gc2QrcM0ivUd0NJzl7Z+ydQo/7gIYD8Hxc+LXkEYzyKLBPHMyKqe+a+be4j3UG0 Xsng== X-Received: by 10.58.171.4 with SMTP id aq4mr830522vec.26.1378206705385; Tue, 03 Sep 2013 04:11:45 -0700 (PDT) MIME-Version: 1.0 From: Leonardo Barbosa Date: Tue, 3 Sep 2013 08:11:04 -0300 Message-ID: Subject: custom completion for listing *.tex is not working To: zsh-users@zsh.org Content-Type: text/plain; charset=ISO-8859-1 Hello all, I have tried this in order to make zsh suggests TeX files first to vi. vi() { command vi ${*:-*.tex(om[1])} } zstyle ':completion:*:*:.tex:*' menu yes select zstyle ':completion:*:*:.tex:*' file-sort time However, it doesn't work. Zsh is listing all types of files and not necessarily the TeX ones first. I have to admit that i don't quite understand the syntax below. Instead, i copied from a tutorial. Could any of you suggest me a hands on tutorial for zsh new completion system? Thanks in advance! Leo