Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Please fix history-search-backward/forward
- X-seq: zsh-users 15342
- From: Felipe Contreras <felipe.contreras@xxxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Subject: Re: Please fix history-search-backward/forward
- Date: Sun, 29 Aug 2010 03:52:36 +0300
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=n/0PtWFdqb/UUiEQurfbU3R12kXjwqPZC83TIwL4OSQ=; b=qk/+S7xw6vSqmdpkfkqEN9s6G8HQZhPPAqAaC2KLZiodDuKnoxSgwdWNp/DDQkOgfF BryLb2SrpEaz4Uyf5xZGVtzasskHoY6lZ/uep96fgAm5mlnHc/cTdSkm+7XffdNEe6Ho vldAiXISlsHBzvLEGmOfn+BJjRaQEblRD7Uyc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=XjoNs8ZGueSg9yGSqf4Tnv2JU4Q3WurKaQS3oxTcGIm2q3PAyWzJ4k1OEGfBQwKlN4 Y5M/Wkyoeu7Jie8kweF2EA67/nfB7n73MeCj84EdniKXswJ/xlenZgKLCzsvnSSQHOER 6gTjaXlIr+b57YspFNfZ8XMZriSSiwxLCi+yo=
- In-reply-to: <AANLkTinysNBjLTO7DoPMtdPvub=UC=y0Za_7xTKYZRYp@xxxxxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <AANLkTikC=C6CD0ZEiuLP__rtS97ePhY_MkpgutnvkeS4@xxxxxxxxxxxxxx> <AANLkTi=PSYk5zM=1-TyDhfD0GauPrxPGXfnuCOX2KLKW@xxxxxxxxxxxxxx> <AANLkTikpeqt0=NQxsG89UZcHVPYTS=vLgXh9BLfNwk0f@xxxxxxxxxxxxxx> <AANLkTinysNBjLTO7DoPMtdPvub=UC=y0Za_7xTKYZRYp@xxxxxxxxxxxxxx>
On Sun, Aug 29, 2010 at 1:33 AM, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> On 29 August 2010 00:23, Felipe Contreras <felipe.contreras@xxxxxxxxx> wrote:
>> On Sat, Aug 28, 2010 at 11:55 PM, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>>> On 28 August 2010 20:54, Felipe Contreras <felipe.contreras@xxxxxxxxx> wrote:
>>>> zle says:
>>>> Search backward in the history for a line beginning with the first
>>>> word in the buffer.
>>>>
>>>> GNU readline says:
>>>> Search backward through the history for the string of characters
>>>> between the start of the current line and the point.
>>
>>>> [1] http://zsh.sourceforge.net/Doc/Release/User-Contributions.html
>>>
>>> I think you want history-beginning-search-backward/forward ? Changing
>>> the effects of a widget is (and I think I can say this quite safely)
>>> is not really an option.
>>
>> I already mentioned history-beginning-search-backward/forward
>> (history-search-end), the point is not how to do that.
>
> history-beginning-search-backward and
> history-beginning-search-backward-end are not the same. The one I
> mentioned is builtin and doesn't need any autoloads.
Ah!
But this is misleading:
---
history-beginning-search-backward
Search backward in the history for a line beginning with the current
line up to the cursor.
history-search-backward
Search backward in the history for a line beginning with the first
word in the buffer.
---
So both start from the beginning, so what's the 'beginning' in the
former supposed to differentiate? Wouldn't history-cur-search-backward
make more sense? Or even better:
---
history-search-backward
Search backward in the history for a line beginning with the current
line up to the cursor.
history-word-search-backward
Search backward in the history for a line beginning with the first
word in the buffer.
---
Note: I'm only objecting to the misleading names.
--
Felipe Contreras
Messages sorted by:
Reverse Date,
Date,
Thread,
Author