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

Re: PATCH: first go at directory info in completion.



On 2009-08-18 13:00:50 +0100, Peter Stephenson wrote:
> Sometimes you have sets of directories with cryptic names, for example
> named after bug records, in which you keep information to do with
> it---anything vaguely database-related gives you this sort of
> arrangement, in fact.  Rather than seeing completion lists like
> 
> BUG0001  BUG0002  BUG0003 BUG0004
> 
> you now create a one-line file (say .zshinfo) in each directory
> describing the directory.  Then you can get completion lists looking
> like
> 
> BUG0001  # Light switch failed to illuminate room
> BUG0002  # Light bulb in south east corner of room broken
> BUG0003  # Wiring behind light switch worn
> BUG0004  # Loose screw on diffusor in south west corner of room
> 
> so when changing directory you no longer have to remember a set of
> 4-digit numbers.

This is nice. However I'd like to see this very configurable. For
instance, as a Subversion user, I'd rather see such a description
as a svn property (which would follow the file with "svn mv").
I hope this would still be efficient enough (or some file like
.zshinfo could be used as a cache).

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)



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