emacs-devel
[Top][All Lists]
Advanced

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

Re: suggestion for C-s (isearch-.*) key-bindings


From: Juri Linkov
Subject: Re: suggestion for C-s (isearch-.*) key-bindings
Date: Sat, 21 Jul 2007 22:03:29 +0300
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

> I'm very grateful for the supplementary search string features of the
> isearch-.* commands.  But I think their key-bindings
> have--unfortunately--little to do with regular Emacs bindings.

Yes, unfortunately, there is a full mismatch between cursor motion
commands and isearch yanking commands.

I had an idea of using a key to activate special isearch mode that will
use cursor motion commands to select the text in the buffer and to add
it to the search string.

> I'd like to suggest the following re-bindings based on Emacs bindings
> for either marking or killing or moving types.
>
> 1.)
> | Key        | marking | killing | moving | type                  |
> |------------+---------+---------+--------+-----------------------|
> | C-M-y      | -       | C-d     | C-f    | char                  |
> | C-w        | M-@     | M-d     | M-f    | word                  |
> | C-y        | -       | C-k     | C-e    | line                  |
> |------------+---------+---------+--------+-----------------------|
> | suggestion | C-M-@   | C-M-d   | C-M-f  | sexp (sorely missing) |
>
> I also like to plead for the inclusion of a sexp type in the
> isearch-.* commands.

With a new key these key sequences could be

M-s C-f   - yank char to the search string
M-s M-f   - yank word to the search string
M-s C-e   - yank line to the search string
M-s C-M-f - yank sexp to the search string

> 2.) M-y -> C-y
>
> By the way, C-M-w is in fact unnecessary since backspace is doing the
> job already.

backspace deletes the last isearch input (which can be a yanked word, line
etc.), and not the character from the search string.

-- 
Juri Linkov
http://www.jurta.org/emacs/




reply via email to

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