Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: first go at directory info in completion.
- X-seq: zsh-workers 27224
- From: Peter Stephenson <pws@xxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Subject: Re: PATCH: first go at directory info in completion.
- Date: Tue, 18 Aug 2009 13:00:50 +0100
- In-reply-to: <dbfc82860908180451k176e8bf4y853d335dc240a99c@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <19348.1250591605@xxxxxxx> <dbfc82860908180451k176e8bf4y853d335dc240a99c@xxxxxxxxxxxxxx>
Nikolai Weibull wrote:
> On Tue, Aug 18, 2009 at 12:33, Peter Stephenson<pws@xxxxxxx> wrote:
> > This is work in progress, which won't be committed, so I'm interested in
> > comments about tweaks (I am not interested in comments about wholesale
> > rewrites and upgrades of the
> > wouldn't-it-be-great-if-everything-were-much-much-better variety in this
> > thread; that's not going to happen).
>
> I won't make any such comment and I have no tweak to mention, I just
> have a wish for a use case for this addition. I don't see the
> immediate use for it.
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.
The main problem at the moment is that while it's fine when every
completion is in that form, it's quite confusing if there are a mixture
of types.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK
'member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author