Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Jumping to the line above



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.



Messages sorted by: Reverse Date, Date, Thread, Author