Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Context-aware file name completion with preferences
- X-seq: zsh-users 15037
- From: Mikael Puhakka <mr.progo@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Context-aware file name completion with preferences
- Date: Sat, 1 May 2010 16:19:41 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=dfdzhfEoxcO1tRVKCG2B8xoG1FNH0hMClwgYQGx2uqY=; b=K/vyWAnkFOtsgFXwqJ/1aIZ8Az1PQmOw8245Tko+P+0zfWsv/OD3Rcv3CFSETAmxse KZLnpFSy8PWokUtuJH4qwbWv6/jGS0um8NE69hJmS8151Nbn9oiD+JXr3Qly2pivjnmx Y1yVPuzbAY9WLr5XghR3V60kleZVlgMSYtxGQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=D5vBNPagRLeJmig9tBFVFUJSD/iX3lf9jTbbc8JfHkKbE18AKWMHOZJqZUT6GPw/Kx 4P1V8ubhh4/ig69pTeXUnIlnH6lsgfKy27HXAHvFqOC/RUR+Cs5PKbmQn2Cr3vbwZmXx mEu4odQ9YGb6U3pc/U0WRgiUnPY9ayqO9UTok=
- 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 dear zsh'ers
I switched from bash a ~month ago, and I've liked about everything zsh
has to offer. Relaxed flexibility, slick form and fast, what the heck.
There's only one greater issue that I haven't resolved yet. It's not a
harmful problem but I'd prefer to get it right for the sake of
usability.
I mean context aware file name completioning with set preferences:
which files are preferred in completion list, which aren't. I don't
want to exclude anything out; that would be too easy and somewhat
intolerant for naming mistakes. A few examples: consider a directory
with typical LaTeX document:
Doc1.tex
Doc1.aux
Doc1.dvi
Doc1.log
...
Of these files, I'd edit the .tex file most often: I would like zsh to
prefer .tex files to anything else from these files. They still should
appear in the completion cycle, but not first. In a similar manner I
would set file type preferences for "c", "cpp", "java" (speaking of
the devil, I hate the way bash always completes foo.class before
foo.java).
Is this doable? How about an opposite? There would be many files
readable by the editor, but I don't want to edit, say aux files very
often, if ever.
How to deal with this kind of demand? I hope zsh is up to the task :)
--Mikael
Messages sorted by:
Reverse Date,
Date,
Thread,
Author