zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <opk@u.genie.co.uk>
To: Zsh workers <zsh-workers@sunsite.auc.dk>
Subject: Saving the zle display stuff
Date: Thu, 09 Mar 2000 12:52:46 +0000	[thread overview]
Message-ID: <38C79E9E.6059AFDB@u.genie.co.uk> (raw)

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


             reply	other threads:[~2000-03-09 12:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-09 12:52 Oliver Kiddle [this message]
2000-03-09 14:45 Sven Wischnowsky
2000-03-10 16:47 ` Oliver Kiddle
2000-03-13  9:22 Sven Wischnowsky
2000-03-14 13:21 ` Oliver Kiddle
2000-03-14  9:38 Sven Wischnowsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=38C79E9E.6059AFDB@u.genie.co.uk \
    --to=opk@u.genie.co.uk \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).