[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple isearch concerns

From: Juri Linkov
Subject: Re: Simple isearch concerns
Date: Mon, 05 Apr 2021 11:30:02 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

>> Swiper provides this option and after trying it I found it very
>> useful and some other users seems they do too.
> I strongly suspect that swiper does not provide *exactly* that option.
> E.g. does Swiper's option also cause C-r foo RET to place point at the *end*
> of "foo" rather than its beginning?

The really useful command that I used for a long time
has a check for isearch-forward:

              (if (and isearch-forward isearch-other-end)
                  (goto-char isearch-other-end))

that doesn't place point at the end for C-r foo RET.

>> In any case, if you think this option is not desirable for any reason,
>> another alternative may be to add a command in the isearch map (bind to
>> C-RET, or M-RET) to end the search and go to the other end... something
>> like isearch-exit-go-other-end. This alternative is actually a bit more
>> interesting; and maybe equivalent to pressing C-r before RET... but
>> faster?
> Yes, that sounds a lot more useful.

And I bound the useful command above to C-RET because such feature is needed
only occasionally.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]