Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Saving the zle display stuff
- X-seq: zsh-workers 10021
- From: Oliver Kiddle <opk@xxxxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxxxxxxxxx>
- Subject: Saving the zle display stuff
- Date: Thu, 09 Mar 2000 12:52:46 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Is it possible to have a zle widget which saves any text (completion
list etc) which is below the prompt (as if ALWAYS_LAST_PROMPT was set
when the list was generated). The nearest I can get to this is:
save_list() {
unsetopt alwayslastprompt
zle list-choices
setopt alwasylastprompt
}
This would be particularly useful with _complete_help where I often want
to cut-and-paste to a zstyle command or refer back to the information
later.
I'd guess that zle prints lists and doesn't remember where it finished
so this isn't easy to do. If this is correct, the solution may relate to
the stuff with calling zle from traps and establishing if there is a
completion list from there.
Oliver Kiddle
Messages sorted by:
Reverse Date,
Date,
Thread,
Author