Zsh Mailing List Archive
Messages sorted by:
Re: up-line-or-search still 'fixed'!
- X-seq: zsh-workers 4090
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: Bruce Stephens <b.stephens@xxxxxxxxx>, zsh-workers@xxxxxxxxxxxxxxx, Zefram <zefram@xxxxxxxxx>
- Subject: Re: up-line-or-search still 'fixed'!
- Date: Wed, 10 Jun 1998 10:13:15 -0700
- In-reply-to: <vbd8chzhq6.fsf@xxxxxxxxxxxxxxx>
- In-reply-to: <199806101031.LAA12567@xxxxxxxxxxxxxxxx>
- In-reply-to: <vbsoldxydj.fsf@xxxxxxxxxxxxxxx>
- References: <19980428143325.59341@xxxxxxxxxxxxxxxxxxxxxxxxxx> <199804281408.PAA32237@xxxxxxxxxxxxxxxx> <19980609141304.41665@xxxxxxxxxxxxxxxxxxxxxxxxxx> <980609082238.ZM5717@xxxxxxxxxxxxxxxxxxxxxxx> <vbu35utvzk.fsf@xxxxxxxxxxxxxxx> <980609114223.ZM6613@xxxxxxxxxxxxxxxxxxxxxxx> <vbd8chzhq6.fsf@xxxxxxxxxxxxxxx> <199806101031.LAA12567@xxxxxxxxxxxxxxxx> <vbsoldxydj.fsf@xxxxxxxxxxxxxxx>
On Jun 10, 12:57pm, Bruce Stephens wrote:
} Subject: Re: up-line-or-search still 'fixed'!
} Zefram <zefram@xxxxxxxxx> writes:
} > Bruce Stephens wrote:
} > >Another one---which I think I'd find acceptable---would be not to move
} > >the cursor, so history-search-backward would always search for the
} > >text before the cursor. Or has that been tried, and people hated it?
} > That's exactly what history-beginning-search-* do.
} Doh. And it's even what M-p, M-n are bound to. So is the problem
} that people really like(d) the behaviour of going to the end of the
No; I explained what the problems are:
(1) history-search-*ward now match only complete words; they used to
match prefixes of words too.
(2) history-beginning-search-*ward match across word boundaries; the
desired behavior is to stop matching at the first word boundary
(or before, see (1)).
(3) *-line-or-search, what we really want to use, are affected by the
implementation of history-search-*ward.
The thing with the cursor moving to the end of the line is simply there
to "look like emacs". (In emacs shell mode, if you hit return with the
cursor in the middle of the line, it acts like zsh's accept-and-hold, but
if you hit return at the end of the line it acts like accept-line. So
history searches in emacs always place the cursor at end of the line, and
Paul F. made zsh act the same.)
Bart Schaefer Brass Lantern Enterprises
Messages sorted by: