Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: command-cancellation with # - my alternatives
- X-seq: zsh-users 12355
- From: Andy Spiegl <zsh.Andy@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: command-cancellation with # - my alternatives
- Date: Thu, 20 Dec 2007 21:47:18 +0100
- In-reply-to: <20071220175536.GE14122@xxxxxxxxxxxxxxxx>
- Kreccount: 1
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20071220175536.GE14122@xxxxxxxxxxxxxxxx>
Hi Micah,
> I operate in vi-mode. I frequently use this sequence to
> interrupt and save a command I'm in the middle of typing: <Esc>#
You might wanna try using "push-line" (bound to Alt-q by default).
I couldn't live without it anymore!
Or another method I use regularily is:
- delete the whole line pressing Ctrl-u
- do whatever you want to do
- recover the deleted line pressing Ctrl-y
(and maybe Alt-y a couple of times if you "killed" more inbetween)
This has the great advantage of not cluttering the zsh history with
commands you never even executed. Would confuse me a lot lateron!
Ah, above are the emacs-bindings, but there are vi-binding too, of course.
Andy.
--
Where did you get lost today after you went where you wanted?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author