From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: Re: Question
Date: Wed, 12 Apr 2000 10:30:32 +0200 (MET DST) [thread overview]
Message-ID: <200004120830.KAA07215@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Peter Stephenson's message of Tue, 11 Apr 2000 21:19:10 +0100
Peter Stephenson wrote:
> Sven Wischnowsky wrote:
> > Currently, if a completion list is too long, the completion system
> > asks if onw wants to see all <n> matches. This is not only ugly in
> > cases like _complete_help with styles-output -- it askes if one wants
> > to see all `0' matches.
> >
> > Should we change it to mention the number of lines needed? I think it
> > would always be more interesting.
>
> Yes, it would. I suppose this is too deep to be able to use a style.
Yes, it is. In fact everything about this was always hard-coded,
including the prompt itself. Changing that would be easy, but is it
worth it?
Bye
Sven
Index: Src/Zle/compresult.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/compresult.c,v
retrieving revision 1.3
diff -u -r1.3 compresult.c
--- Src/Zle/compresult.c 2000/04/10 08:06:39 1.3
+++ Src/Zle/compresult.c 2000/04/12 08:27:38
@@ -1585,8 +1585,8 @@
(!complistmax && listdat.nlines >= lines))) {
int qup;
zsetterm();
- qup = printfmt("zsh: do you wish to see all %n possibilities? ",
- listdat.nlist, 1, 1);
+ qup = printfmt("zsh: do you wish to see all %n lines? ",
+ listdat.nlines, 1, 1);
fflush(shout);
if (getzlequery() != 'y') {
if (clearflag) {
Index: Src/Zle/zle_tricky.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_tricky.c,v
retrieving revision 1.3
diff -u -r1.3 zle_tricky.c
--- Src/Zle/zle_tricky.c 2000/04/10 09:29:09 1.3
+++ Src/Zle/zle_tricky.c 2000/04/12 08:27:38
@@ -1991,8 +1991,8 @@
int qup;
zsetterm();
- qup = printfmt("zsh: do you wish to see all %n possibilities? ",
- num, 1, 1);
+ qup = printfmt("zsh: do you wish to see all %n lines? ",
+ nlines, 1, 1);
fflush(shout);
if (getzlequery() != 'y') {
if (clearflag) {
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~2000-04-12 8:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-04-12 8:30 Sven Wischnowsky [this message]
2000-04-12 16:10 ` Bart Schaefer
2000-04-13 7:59 Sven Wischnowsky
2000-04-13 8:40 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=200004120830.KAA07215@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).