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

Re: Jumping to the line above

Fabiano Sidler wrote:
> I want to implement an "inline cd-keybinding", that means:
> 	[Some previous output]
> 	~/bin/foo/bar $ 
> After typing (for example) ^U twice:
> 	[Some previous output]
> 	~/bin $ 
> For that I need a command or widget, that deletes the prompt on the next
> line and moves the cursor back to the line preceeded.
> However, I haven't found anything like that. Is there another possibility?

I think what you *really* want is a way of re-expanding the current
prompt.  Then everything could be done in a zle widget without any
strange display tricks.  At the moment the code assumes the prompt won't
change during editing, so that would need a bit of an internal rewrite.
However, I think it's a useful goal.

Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 692070

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.


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