zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <opk@u.genie.co.uk>
To: Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>,
	ZSH workers mailing list <zsh-workers@sunsite.auc.dk>
Subject: Re: Size of select listing?
Date: Fri, 10 Sep 1999 16:23:29 +0100	[thread overview]
Message-ID: <37D92271.182ECD11@u.genie.co.uk> (raw)
In-Reply-To: <000401befad6$ad291a50$21c9ca95@mow.siemens.ru>

Andrej Borsenkow wrote:

> patch TAB
> 
> creates a select listing longer than screen size. At least, if I do it in a
> directory with ~ 15 files.
> 
> bor@itsrm2:~%> patch
> --backup                  --reverse                 -i
> --backup-if-mismatch      --set-time                -l
> . . .
> --quoting-style           -e                        tmp/
> --reject-file             -f                        xxxx/
> --remove-empty-files      -g

It doesn't so much relate to handling the screen size but, one area
which I really don't like about the way _arguments and _long_options
work is the way options are considered possible matches straight-away. I
don't like the mixed file and option lists as above because 9 times out
of 10 I don't care what the options to a particular command are and if I
do, I'll have typed the minus already. The way I've always written
compctls (and the way the compctl-examples are done), is that options
are only completed after an initial minus has been typed and long
options, only after an initial two minuses. I also think it is better if
the minus signs are not displayed in the lists so as to save a bit more
screen space - I don't think they add to the readability at all. In
summary, I think that patch <tab> should list and complete file names
only, patch -<tab> should complete options and should display them
without the initial '-' and patch --<tab> should list only the long
options (unless we have filenames starting with '-') without displaying
'--' before every option. This way of doing things would reduce the
number of things which get listed.

I'd write a patch for _arguments/_long_options for this but I suspect
people might disagree with me and because they have both become quite
complicated so it'd take me a while.

Oliver Kiddle


  reply	other threads:[~1999-09-10 15:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-09 15:19 Andrej Borsenkow
1999-09-10 15:23 ` Oliver Kiddle [this message]
1999-09-10 15:45   ` Completion listing of command options (Re: Size of select listing?) Bart Schaefer
1999-09-10 15:46   ` Size of select listing? Peter Stephenson
1999-09-10 15:54   ` Completion listing of command options ( Re: Size of select listing?) Andrej Borsenkow
1999-09-10 15:59   ` Size of select listing? Andrej Borsenkow
1999-09-13 14:42 Sven Wischnowsky

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=37D92271.182ECD11@u.genie.co.uk \
    --to=opk@u.genie.co.uk \
    --cc=Andrej.Borsenkow@mow.siemens.ru \
    --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).