Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: History key bindings
- X-seq: zsh-users 1156
- From: Christopher Croughton <crough45@xxxxxx>
- To: schaefer@xxxxxxxxxxxxxxxx (Bart Schaefer)
- Subject: Re: History key bindings
- Date: Fri, 28 Nov 1997 09:57:50 +0100
- Cc: crough45@xxxxxx, zsh-users@xxxxxxxxxxxxxxx
- In-reply-to: <971127104306.ZM3164@xxxxxxxxxxxxxxxxxxxxxxx> from "Bart Schaefer" at Nov 27, 97 07:43:06 pm
Bart Schaefer wrote:
>
> On Nov 27, 7:21pm, Christopher Croughton wrote:
> } Subject: Re: History key bindings
> }
> } Bart Schaefer wrote:
> } > When you first press up-arrow, there (normally) won't be any mark on
> } > the line, so ^X^X does nothing.
> }
> } Er, on 3.0 it seems that the mark is initially set to the start of the line,
>
> I thought I was seeing that behavior at one point, but now I can't get it
> to happen again (... some fooling about occurs ...)
>
> Aha! Whenever you use a history operation like ^P, the mark gets set at
> the beginning of the line before the new history line is inserted. So
> you can't mix that bindkey -s with other history motions unless you set
> the mark yourself in between. If all you do is type the prefix and then
> press up-arrow, it works fine.
The only way I can get it to work is if I do an initial ^X^X after typing
the prefix. If I do <CR>fred<UP> then it just scans through the history
matching on nothing at all. If I do <CR>fred^X^X<UP> then it works fine,
and I can even delete everything on the line or modify it in any other way
and it will search for the new string. I'm not doing any other history
motions on the line, just the bound up-arrow key.
Strange, ne? Perhaps a different version of zsh will help?
Chris C
Messages sorted by:
Reverse Date,
Date,
Thread,
Author