[Top][All Lists]

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

Re: isearch region or thing at point.

From: Ergus
Subject: Re: isearch region or thing at point.
Date: Wed, 1 May 2019 18:03:44 +0200
User-agent: NeoMutt/20180716

Hi Drew:

I would prefer a keybind for it, even a different one, but otherwise
nobody will use the command and the people will continue using
workarounds like now. I didn't take M-y or C-y because they were already
taken and M-w was not colliding with anything in my emacs -Q.

Many people just find the emacs commands while using emacs (thanks to
which-key or counsel-completion or Helm they discover the keybinds) and
commands without a keybind are VERY less visible/accessible unless they
explicitly know and configure a bind for them. The users find them only
after reading a lot of documentation in the manual (which no many people
do). But which-key simplifies the life a lot. Specially for new users.

In fact the "right" to do (IN MY OPINION) is to define a keybind for all
the commands like this. (which insert text from active-region into
minibuffer once in the minibuffer, that could help for
replace-regex/find-file/flyspell/and many others) that will solve a lot
of collisions and will simplify the user experience a lot. (memorization)

We have a lot of package that already proposes patches for this issue
trying to figure out somehow when to insert text from region (or near to
point) to the minibuffer (all the thing-at-point-like packages in elpa
&& melpa are workarounds for this general issue).

BTW: The isearch+ package isn't in elpa||melpa?? I can't find it in the
packages-list, so probably that's why I didn't check it before (I try to
avoid this kind of issues as much as possible before proposing
changes). Is there any reason why it is not in elpa||melpa? Because I
don't know anyone who uses it; for sure because they don't know it.

Let's wait for Eli, Basil and the others... Maybe they will propose a
genial solution (as usual).

On Wed, May 01, 2019 at 07:33:27AM -0700, Drew Adams wrote:
I'm sorry to say that I'm not in favor of `M-w'
being bound in `isearch-mode-map' for this behavior.

I'm not opposed to some key being bound for it,
though I'd prefer that we just define the command
and leave it unbound (letting users bind it if they
find it handier than just using `M-w' before `C-s').

In Isearch+ I bind `M-w' to `isearchp-kill-ring-save',
which I feel is more useful than your command, which
is a short cut for the usual Emacs keys.

`isearchp-kill-ring-save' copies the current search
string to the kill ring.

I've bound it to `M-w' in the search map since 2013,
when we moved `isearch-toggle-word' from `M-w' to
`M-s w'.

How about just adding your command and not binding
it by default?

reply via email to

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