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

Re: "Cancel" menu selection & Co?



On May 10,  9:14pm, Andrej Borsenkow wrote:
} Subject: "Cancel" menu selection & Co?
}
} Currently, as soon as menu selection is started, there seems to be no way
} to cancel it - that is, revert input line to original state. The closest
} it, exit menu selection and hit Undo.
} 
} Does anybody really use ^G to switch from menu selection to menu
} completion? I hardly see any point here. So, the suggestion is, to make ^G
} really cancel selection and revert line to it's original state (before
} match was inserted). This is also consistent behaviour for ^G, that
} normally cancels actions in other places.

I, too, would prefer this behavior.
 
} As a related (to me at least) question or request - is it possible to
} enter menu selection immediately if list does not fit on screen?

We discussed that, but I don't recall whether it's possible.  The doc
for the `menu' style doesn't mention it.

} OTOH if menu selection can be quit with ^G it can be
} used as replacement for listing, but replacement that supports scrolling,
} paging, going back etc.

Listing already supports scrolling; set the LISTPROMPT parameter.  There's
a list-prompt style, too.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



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