zsh-workers
 help / color / mirror / code / Atom feed
* Re: PS1 or PS2
@ 1999-06-29 11:16 Sven Wischnowsky
  1999-06-29 11:41 ` Andrej Borsenkow
  0 siblings, 1 reply; 7+ messages in thread
From: Sven Wischnowsky @ 1999-06-29 11:16 UTC (permalink / raw)
  To: zsh-workers


Andrej Borsenkow wrote:

> I already wrote about this: when on PS2 up-line-or-history moves to previous
> history event instead of previous line of current event. It just occured to me,
> that something like
> 
> if we-are-on-PS2
>   zle .push-line-or-edit
> zle .up-line-or-history
> 
> would do quite nicely ... but how can I find out (in user defined widget) that I
> am on PS2? The info is available (push-line-or-edit has it) - is it possible to
> make it available to user widgets as well?

I haven't tried, but [[ -z "$PREBUFFER" ]] should work.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 7+ messages in thread
* PS1 or PS2
@ 1999-06-29 10:54 Andrej Borsenkow
  0 siblings, 0 replies; 7+ messages in thread
From: Andrej Borsenkow @ 1999-06-29 10:54 UTC (permalink / raw)
  To: ZSH workers mailing list

I already wrote about this: when on PS2 up-line-or-history moves to previous
history event instead of previous line of current event. It just occured to me,
that something like

if we-are-on-PS2
  zle .push-line-or-edit
zle .up-line-or-history

would do quite nicely ... but how can I find out (in user defined widget) that I
am on PS2? The info is available (push-line-or-edit has it) - is it possible to
make it available to user widgets as well?

/andrej



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1999-07-07 15:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-06-29 11:16 PS1 or PS2 Sven Wischnowsky
1999-06-29 11:41 ` Andrej Borsenkow
1999-06-29 13:09   ` Andrej Borsenkow
1999-06-29 15:24     ` Bart Schaefer
1999-07-07 13:34       ` Some help neede :-) " Andrej Borsenkow
1999-07-07 15:39         ` Bart Schaefer
  -- strict thread matches above, loose matches on Subject: below --
1999-06-29 10:54 Andrej Borsenkow

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).