zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <opk@u.genie.co.uk>
To: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
Cc: zsh-workers@sunsite.auc.dk
Subject: Re: Saving the zle display stuff
Date: Fri, 10 Mar 2000 16:47:07 +0000	[thread overview]
Message-ID: <38C9270B.F95365E1@u.genie.co.uk> (raw)
In-Reply-To: <200003091445.PAA30461@beta.informatik.hu-berlin.de>

Sven Wischnowsky wrote:
> 
> It would be relatively easy to make it remember how long the list
> below the prompt is (it should already know about the presence of a
> list -- at least in most cases).
> So, are you suggesting a zle-option to make it put the prompt `below
> the list if there is one'?

Yes: a zle-widget that puts the prompt below the list if there is one.
That allows me to keep the current list for later reference if I decide
that I want to.

> If you are only concerned about completion: there is the last-prompt
> style. But unfortunately, this doesn't work with _complete_help
> because that doesn't set up it's own $curcontext, and, I think, it
> shouldn't because we call it to get information about normal
> completion in the same context. Hm. We could make _complete_help test
> the last-prompt style directly with a context like
> `:completion:complete-help::::' and if it is true, set
> `compstate[last_prompt]=yes'.

That would be useful, though the widget would be better.
I couldn't actually get this to work. Even just putting
compstate[last_prompt]='yes' before the compadd in _complete_word didn't
work.

Out of interest, why does _setup use zstyle -s followed by [[ "$val" =
(yes|true|1|on) ]] for various things including last-prompt instead of
just using zstyle -b (or -t or -T)?

And in a separate message, Sven wrote:
> Oliver Kiddle wrote:
> > Is there a better way for me to have done the equivalent of :*:nothing:_nothing for the -r option?
>
> Can't think of a better way... never thought about that. Hm. Is it
> worth to make _arguments support this directly, i.e. add a syntax
> saying: `no more arguments after this option'?

There's probably quite a lot of commands like zpty where they can be
used in a few separate ways (each with their own set of arguments) and
for these commands it is useful to avoid the final arguments for some
forms so if it is fairly simple to do and there is a clear way of
representing it in the _arguments parameters then it is probably worth
doing.

Oliver


  reply	other threads:[~2000-03-10 16:47 UTC|newest]

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

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=38C9270B.F95365E1@u.genie.co.uk \
    --to=opk@u.genie.co.uk \
    --cc=wischnow@informatik.hu-berlin.de \
    --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).