[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] [PATCH] Implement incremental search v6
From: |
Marco Diego Aurélio Mesquita |
Subject: |
Re: [Nano-devel] [PATCH] Implement incremental search v6 |
Date: |
Tue, 6 Feb 2018 00:44:52 -0200 |
On Sun, Feb 4, 2018 at 3:04 PM, Benno Schulenberg <address@hidden> wrote:
> M-B <Backspace> <Backspace>
> The screen should jump back, first to the first occurrence of "Th",
> then to the first occurrence of "T", in the forwards direction from
> the original starting point. Vim and Emacs jump back when the
> search string is shortened; nano should behave the same way.
>
I spent some time thinking about how to implement this behaviour. It
is a little more complicated than I initially thought. Been able to
use M-W (search next occurrence) while in incremental search
complicates things; I don't think vim has such a feature. Both Chrome
and Firefox behave similar to my current implementation; gedit behaves
similar to vim and it has a search next while in incremental search,
but it has it own quirks too: it looks like every new key is
re-searched from the initial point where the search was started,
regardless of how many "search next"'s you fired; another quirk is
that an empty prompt always returns to the initial search position.
Should I implement it the "gedit"-way?