zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: Independent numbers of columns for matching groups?
Date: Mon, 20 Sep 1999 10:31:29 +0200 (MET DST)	[thread overview]
Message-ID: <199909200831.KAA06269@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Adam Spiers's message of Fri, 17 Sep 1999 22:31:46 +0100


Adam Spiers wrote:

> This may have been discussed before and I missed it, but would it be
> possible to changing the group_matches code so that the number of
> columns is calculated individually for each matching group?
> 
> An example of why I ask is _rpm; sometimes it offers the following
> completion groups:
> 
>   - RPM packages
>   - RPM package files
>   - ftp prefixes
> 
> RPM packages are always long, which forces the whole output into a
> long single-column list, even though the RPM package files section
> could easily fit in multiple columns and save screen space.

Yes, I saw this, too, sometimes. The only problem I have with changing 
it right away is that for groups that don't differ so much I prefer
having all columns aligned (well, another problem I have with this is
that it would make {i,comp}listmatches() more complicated, but that
shouldn't be a reason not to allow this). So maybe we should make this 
an option are think about some clever way to make it automatically
decide if the columns should be aligned for all groups or not. That
would be: if the minimum and maximum number of columns for all groups
differ only by one (or two? or by `max / n'?), align all groups.

Maybe we'll just have to play with this (and hence implement it).

This gives me the oppotunity to repeat my question about the other two 
possible enhancements: Andrej's suggestion to allow matches to be
layed out in a row-first order and my old LIST_PACKED (see 7590).
Interesting enough?

Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


             reply	other threads:[~1999-09-20  8:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-20  8:31 Sven Wischnowsky [this message]
1999-09-20 22:15 ` Adam Spiers
  -- strict thread matches above, loose matches on Subject: below --
1999-09-17 21:31 Adam Spiers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199909200831.KAA06269@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).