Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
custom completion for listing *.tex is not working
- X-seq: zsh-users 17969
- From: Leonardo Barbosa <barbosa.leonardo@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: custom completion for listing *.tex is not working
- Date: Tue, 3 Sep 2013 08:11:04 -0300
- 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==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author