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

Saving the zle display stuff



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