zsh-users
 help / color / mirror / code / Atom feed
From: Leonardo Barbosa <barbosa.leonardo@gmail.com>
To: zsh-users@zsh.org
Subject: custom completion for listing *.tex is not working
Date: Tue, 3 Sep 2013 08:11:04 -0300	[thread overview]
Message-ID: <CAMXWGTwZB9wP4YbuW703sBErWZhRYrb6YpWZ2mGKqtGo08KOVg@mail.gmail.com> (raw)

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


             reply	other threads:[~2013-09-03 11:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-03 11:11 Leonardo Barbosa [this message]
2013-09-03 14:32 ` Bart Schaefer
2013-09-09 11:49   ` Leonardo Barbosa
2013-09-10 15:08     ` Bart Schaefer
2013-09-10 16:31       ` Peter Stephenson
2013-09-10 16:45         ` Bart Schaefer
2013-09-06 13:24 ` zzapper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAMXWGTwZB9wP4YbuW703sBErWZhRYrb6YpWZ2mGKqtGo08KOVg@mail.gmail.com \
    --to=barbosa.leonardo@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).