zsh-users
 help / color / mirror / code / Atom feed
From: Fabiano Sidler <fabianosidler@swissonline.ch>
To: zsh-users@sunsite.dk
Subject: Re: Jumping to the line above
Date: Thu, 1 Jul 2004 21:55:23 +0200	[thread overview]
Message-ID: <200407012155.23845.fabianosidler@swissonline.ch> (raw)
In-Reply-To: <200407011214.i61CEhUe012898@news01.csr.com>

Peter Stephenson wrote:
> [a widget and a patch]

Whoah, thanks! But don't break your legs for me! ;)
The problem with your solution: It's not portable, but I'm going to use
the zsh on other boxes, even where I'm not root on. Hence, there must be
a solution entirely written in zsh scripts, not in C.
The following does not work, as you said:

	~ $ updir() { echo -n $'\r               '; cd .. ; zle redisplay }
	~ $ zle -N updir
	~ $ bindkey '^U' updir
	~ $ [^U^U]

I must press Return to get the desired prompt:

	/ $

I wouldn't believe it, if there were not a solution. But where? ;)
Thanks for reply!

Greetings,
Fips


  parent reply	other threads:[~2004-07-01 19:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-01 11:23 Fabiano Sidler
2004-07-01 11:32 ` Peter Stephenson
2004-07-01 12:14   ` Peter Stephenson
2004-07-01 12:30     ` Oliver Kiddle
2004-07-01 16:44       ` PATCH: re-expand the prompt automatically Wayne Davison
2004-07-01 19:55     ` Fabiano Sidler [this message]
2004-07-01 23:45       ` Jumping to the line above Bart Schaefer

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=200407012155.23845.fabianosidler@swissonline.ch \
    --to=fabianosidler@swissonline.ch \
    --cc=zsh-users@sunsite.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).