Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: (rfc) HIST_FIND_DUPS option
- X-seq: zsh-workers 29209
- From: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Subject: Re: PATCH: (rfc) HIST_FIND_DUPS option
- Date: Mon, 9 May 2011 16:51:24 -0700
- Cc: zsh workers <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=8qTjeYJZZUpZobVbLevomwAQP7ZwWeGhXNhSkZmI6oM=; b=j0QwU2EVcbgjSUaF2deTHnGCt98xoYE9SdvHxfXZJYh/hg95ZODWXudW1+uFbpFWhU X4XEElKtAWvmxiQBlBj+v6/B4bgGK24jj0LgIeIi5K9sORZ01Sn9rcLZbnvlA+CpdShr eLsTw6fnaTPEue393OsjjN1odcpqbuvORVT+g=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=rcuZ1jvbDxl68mBlX1HvSdskXGtAARpoCVgy6T2yoMRyATm/n2LJx3QG5Gq7k8zpuq iIwi7Wjnt+yPVpA61qJ/EvY9h7cHKjhK7DYoazcRRuMbXLND2JMdcewT9XNUxJjbiCNq vJ9dq4mlvKpttg1lhrXaJ8bNAaXo3FXrigzkE=
- In-reply-to: <BANLkTinNiXnaHb2mWJhWOKZoqoE9U1Bhcw@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <BANLkTinNiXnaHb2mWJhWOKZoqoE9U1Bhcw@mail.gmail.com>
- Sender: 4wayned@xxxxxxxxx
On Mon, May 9, 2011 at 3:09 PM, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> I am currently unsure why unsetting HIST_FIND_NO_DUPS doesn't have this
> behaviour already. Possibly it only finds the same line after finding
> another line in between that also matches the search
Exactly. Under normal circumstance, if the user has rejected a particular
line as not being one that they want to run, showing them the same line
isn't usually very useful to them (and may indeed be confusing).
I don't particularly like the HIST_FIND_DUPS option. If you named it
HIST_FIND_ALL_DUPS I'd like it a bit better, but I do wonder if there isn't
a better solution to help you solve this particular search idiom (one where
you're really searching not just for a line, but for a set of lines). For
instance, it would be interesting to be able to ask zsh to show a line or
two of context following the line as you visit each matching line. In such
a search, it would make a lot of sense to show the user another identical
line that has differing context, so that would be the default.
..wayne..
Messages sorted by:
Reverse Date,
Date,
Thread,
Author