From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: completion widgets in menu selection
Date: Wed, 11 Oct 2000 09:44:37 +0200 (MET DST) [thread overview]
Message-ID: <200010110744.JAA26012@beta.informatik.hu-berlin.de> (raw)
[The last uncommitted patch.]
As promised, here is the patch that makes completion widgets that are
not directly handled by the menu selection code leave menu selection
without accepting the match currently selected.
Together with the _all_matches stuff, this allows one to use a
key-binding that inserts all matches from within menu selection
without having to fiddle with key bindings.
The more I think about this, the more sense does it seem to make,
especially because this allows everything that was possible before
plus some.
Bye
Sven
diff -u -r ../oz/Src/Zle/complist.c ./Src/Zle/complist.c
--- ../oz/Src/Zle/complist.c Tue Oct 10 21:38:58 2000
+++ ./Src/Zle/complist.c Tue Oct 10 21:55:20 2000
@@ -2237,7 +2237,11 @@
continue;
} else {
ungetkeycmd();
- acc = 1;
+ if (cmd->widget && (cmd->widget->flags & WIDGET_NCOMP)) {
+ acc = 0;
+ broken = 1;
+ } else
+ acc = 1;
break;
}
do_single(**p);
@@ -2260,6 +2264,7 @@
menucmp = 2;
showinglist = -2;
minfo.asked = 0;
+ zrefresh();
}
if (!noselect && (!dat || acc)) {
showinglist = -2;
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~2000-10-11 7:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-11 7:44 Sven Wischnowsky [this message]
2000-10-11 9:15 ` Andrej Borsenkow
2000-10-11 15:59 ` E. Jay Berkenbilt
2000-10-11 16:42 ` Andrej Borsenkow
2000-10-11 17:37 ` E. Jay Berkenbilt
2000-10-12 6:21 ` Andrej Borsenkow
2000-10-12 8:52 Sven Wischnowsky
2000-10-12 9:28 Sven Wischnowsky
2000-10-12 9:38 ` Andrej Borsenkow
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=200010110744.JAA26012@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).