Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

RE: completion widgets in menu selection

> 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.

Excellent! I am espicially impressed by the size of patch :-)

> 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.

I even suggest, that this be included in distribution.

> 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.

One problem. How should undo after this second widget behave? Curretly it
leaves the last match, selected in menu selection, inserted and forgets about
list. It would be very nice if it returned to menu selection ... but I do not
know how difficult it is.

More general. With amount of state information kept in compstate it is very
easy to write separate bindable commands that modify generated lists. It would
be very nice if undo returned to previous state in this case.


Messages sorted by: Reverse Date, Date, Thread, Author