zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@sunsite.dk
Subject: Re: Jumping to the line above
Date: Thu, 1 Jul 2004 16:45:20 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.60.0407011632500.16728@toltec.zanshin.com> (raw)
In-Reply-To: <200407012155.23845.fabianosidler@swissonline.ch>

On Thu, 1 Jul 2004, Fabiano Sidler wrote:

> I wouldn't believe it, if there were not a solution. But where? ;)

updir() {
  print -z "$PREBUFFER$BUFFER"
  BUFFER=''
  zle redisplay
  cd ..
  zle send-break
}

Problems:

It beeps at you.

It's crude about handling the input at the PS2 prompt.

It doesn't maintain cursor position if you aren't at the end of the input.


      reply	other threads:[~2004-07-01 23:46 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     ` Jumping to the line above Fabiano Sidler
2004-07-01 23:45       ` Bart Schaefer [this message]

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=Pine.LNX.4.60.0407011632500.16728@toltec.zanshin.com \
    --to=schaefer@brasslantern.com \
    --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).