Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: $ZLE_LINE_ABORTED
- X-seq: zsh-workers 28236
- From: Greg Klanderman <gak@xxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: PATCH: $ZLE_LINE_ABORTED
- Date: Tue, 07 Sep 2010 10:31:41 -0400
- In-reply-to: <20100907130231.49dcf737@xxxxxxxxxxxxxxxxxxxxxxxxx> (Peter Stephenson's message of "Tue, 7 Sep 2010 13:02:31 +0100")
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20100907114403.0e526e9c@xxxxxxxxxxxxxxxxxxxxxxxxx> <AANLkTinjkD7F53shp+vWZu01J-a48MxhbvFGpDrZshhC@xxxxxxxxxxxxxx> <20100907130231.49dcf737@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Reply-to: gak@xxxxxxxxxxxxxx
Cool, I was just wanting something like this the other day.. is there
a way to capture the line when exiting zle with C-c as well?
Here's how I'm using it, btw:
function _zle-line-init () {
if [[ -n ${ZLE_LINE_ABORTED-} ]] ; then
zle copy-region-as-kill "$ZLE_LINE_ABORTED"
unset ZLE_LINE_ABORTED
fi
}
thanks,
Greg
Messages sorted by:
Reverse Date,
Date,
Thread,
Author