Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
completion widgets in menu selection
- X-seq: zsh-workers 12955
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: completion widgets in menu selection
- Date: Wed, 11 Oct 2000 09:44:37 +0200 (MET DST)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
[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@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author