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 31171
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Peter Stephenson <pws@xxxxxxx>
- Subject: Re: PATCH: first go at directory info in completion.
- Date: Thu, 21 Mar 2013 18:33:05 +0100
- Cc: zsh workers <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=Vm/q46BO+mzYxnbBxX2dTuk2M7gOkK9EYMpbT9e5s28=; b=zPplLk5MPCtQnwhxa2eiANfzFbhu27UZK7dvUq+p2hZTAXOSGh0So7+SViMABK/6Vl ze0MKGbKvhXQX9eidIVvh6f/qWV4VJxMC46x6LdywmU5T7tOvDKLpeE377WFIRnt32cW qAyy1a3/NUJq4DTcvUp58gkpmVnhrhhjE6xFy/IvvovxZs1TPCtmKe63fhp0Cz6Njeo8 3AfDG9BCuq/dtYMWgygl4PWjmGXSS1pGFbQ+z9LVWAKemMZRbBsRDSgi6PLORrRcHLpP GcEuFC1FLb0/RWx0OTeiJfFWH2z+oBxGC2DZ/hnU846VVghniOcictiEiniOvqBYXUmk jhWw==
- In-reply-to: <19348.1250591605@csr.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <19348.1250591605@csr.com>
Hi,
I was just curious if you've fiddled with this any more since you
posted it. I found it commented out in my .zshrc earlier today and
realized that while it's a bit annoying to keep on at all times, it's
quite useful to have bound to another key. eg,
zstyle ':completion:dirprop:*' file-list dirprop=user.notes # with my
follow-up patch
zstyle ':completion:dirprop:*' dirinfo-format '%f '${(%):-%F{11}}%i${(%):-%f}
zle -C dirprop complete-word _generic
bindkey "^_^V" dirprop
On 18 August 2009 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).
>
> The file-list style can now take a value dirinfo=<filename>. If
> <filename> exists in a directory, then completion lists show the
> contents of <filename> together with the directory. The style
> dirinfo-format can be used to change the display: %f is the base
> filename of the directory, %d is the path to the directory (the bit
> usually stripped in completion lists), %i is the contents of
> <filename>.
>
> The main problem at the moment seems to be that whenever you have a
> directory with information the formatting of the entire completion list
> becomes one-per-line. Grouping would improve this. However, I'm a bit
> worried that this happens at too low a level to add a completion group
> (i.e. a different compadd with a different -J or -V option) at this
> point consistent with existing tags and labels, which is why I've
> stopped at this point for now.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author