zsh-users
 help / color / mirror / code / Atom feed
* custom completion for listing *.tex is not working
@ 2013-09-03 11:11 Leonardo Barbosa
  2013-09-03 14:32 ` Bart Schaefer
  2013-09-06 13:24 ` zzapper
  0 siblings, 2 replies; 7+ messages in thread
From: Leonardo Barbosa @ 2013-09-03 11:11 UTC (permalink / raw)
  To: zsh-users

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-09-10 16:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-03 11:11 custom completion for listing *.tex is not working Leonardo Barbosa
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

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).