Perfect! Now what do I do with my evening? :)
-deech


On Fri, May 3, 2013 at 5:51 PM, Michael Markert <markert.michael@gmail.com> wrote:
On Sat, May 04 2013 (00:12), Barry OReilly <gundaetiapo@gmail.com> wrote:

> On Fri, May 3, 2013 at 4:00 PM, aditya siram <aditya.siram@gmail.com> wrote:
>
>> I'm working on a patch to evil where searching for a word with '/' allows
>> me to stop at a partial match.
>>
>> For example, given:
>> "The wor^d I am looking for is abcd".
>> where '^' represents point, if I type '/' 'abce', 'abc' is highlighted.
>> When I hit RETURN or C-g I want point to go to the beginning of that
>> partial match and not jump back to where my search started.
>>
>
> It sounds like the wrong behavior to me, because "abce" doesn't match
> "abc". I probably misunderstood you.

No it does not match, but Isearch (and therefore the current default
search of evil) stops here if "abce" does not occur in the buffer
because it matched the previous input "abc".

I liked the idea so I put it into my config:
https://github.com/cofi/dotfiles/commit/13bca2e2503653fb0137a4216535d4505c3cb100

(Popping the mark returns to start, as usual, so C-o or C-x C-SPC)

BUT I don't think RET or even C-g are a good choice for keys. And then
I'm unsure if it should be included into evil.

Michael

_______________________________________________
implementations-list mailing list
implementations-list@lists.ourproject.org
https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list