Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: How to change order of completions?



 >  On Apr 1,  7:27am, reckoner wrote:
 >  }
 >  }     file.tex , file.dvi, file.log, file.aux
 >  }
> } and I would like to complete on the *.tex files before any other file.

 >  See here:  http://zsh.sourceforge.net/Guide/zshguide06.html#l159

 >  So something like

 >  zstyle ':completion:*:vi(|m):*' file-patterns \
 >      '*.tex:tex-files' '*.(c|cpp|c++|h|py):src-files' '*:all-files'

This works great except when I have

% vi () { gvim $* }

as a user-defined function.

% vi<TAB>

doesn't work but

% vim<TAB>

works as expected.



Messages sorted by: Reverse Date, Date, Thread, Author