Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Fw: Zsh - push current command on history without executing it
- X-seq: zsh-users 12406
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Fw: Zsh - push current command on history without executing it
- Date: Wed, 9 Jan 2008 18:58:03 +0000 (UTC)
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: SuccessTheory
- References: <20080104105900.37a87f7e@news01> <237967ef0801040304h494987bv939bf6ff9541123f@xxxxxxxxxxxxxx> <477E177A.3060303@xxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
Casper Gripenberg wrote in news:477E177A.3060303@xxxxxxxxxxxxx:
> Mikael Magnusson wrote:
> > [...]
>> And I have this custom widget to help me store a command line in history
>> without executing it:
>>
>> commit-to-history() {
>> print -s ${(z)BUFFER}
>> zle send-break
>> }
>> zle -N commit-to-history
>> bindkey "^X^H" commit-to-history
>>
Good one,
BTW you can use this as a temporary memory for a telephone number etc etc as
well etc.
I seem to have trouble with double letter bindkeys , or is this the old vi-
edit mode problem?
--
zzapper
http://www.rayninfo.co.uk/vimtips.html
http://rayninfo.co.uk/tips/zshtips.html
Messages sorted by:
Reverse Date,
Date,
Thread,
Author