Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zshzle: aborting history search
- X-seq: zsh-users 7712
- From: Georg Neis <georg@xxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: zshzle: aborting history search
- Date: Sun, 18 Jul 2004 09:21:00 -0000
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <7b9.40f9587d.a8ae6@xxxxxxxxxxxxxxxxxxx> <20040717184743.GA9358@xxxxxxxxx> <dbe.40f97840.4f0d2@xxxxxxxxxxxxxxxxxxx> <Pine.LNX.4.60.0407171917400.10364@xxxxxxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
* Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Sat, 17 Jul 2004, Georg Neis wrote:
>
> > "bck-i-search: cat /fo" turns into "failing bck-i-search: cat /fo"
> > because the command is (for whatever reasons) not in my history file.
> > Now I want to [move] "cat /fo" from the search prompt to the normal
> > command prompt
>
> copy-search-as-buffer() { zle end-of-history; BUFFER="$LASTSEARCH" }
> zle -N copy-search-as-buffer
> bindkey '\ee' copy-search-as-buffer
Great - that works. I only added CURSOR="$#BUFFER" to the function's
definition.
So long, and thanks for all the answers!
Messages sorted by:
Reverse Date,
Date,
Thread,
Author