emacs-devel
[Top][All Lists]
Advanced

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

Re: [External] : Re: Proposal: new default bindings for winner and windm


From: Philip Kaludercic
Subject: Re: [External] : Re: Proposal: new default bindings for winner and windmove
Date: Mon, 24 Jun 2024 07:18:28 +0000

Drew Adams <drew.adams@oracle.com> writes:

>> I didn't manage to read the entire thread, but isn't the main issue with
>> C-x 4 <arrow key> that it is a relatively long key chord with a certain
>> travel distance on the keyboard for a quick operation?  If it is easier
>> to press C-x o a few times (which `repeat-mode' makes even easier), then
>> there is little point in adding a default binding, I feel.
>
> I assumed the proposal was for _repeating_
> keys after a prefix key: C-x 4 <down> <down>...
> or even a mixture of arrow directions:
> C-x 4 <down> <right> <up>, <up>...

No, then my message wouldn't make any sense.  That would just make the
key chord more complicated to type.  Switching windows is something
people do frequently and quickly.  So a "slow" binding (i.e. takes a
relatively long time to enter, especially when compare to existing
strategies) will not be that effective.

> I do this all the time - use a prefix key
> followed by other keys for repeated actions,
> incremental changes such as resizing a window
> or frame, moving a frame around, or changing
> color attributes.
>
> E.g., a prefix key (such as `C-x 4') can be
> followed by any sequence of <up>, <down>,
> <left>, <right> keys, i.e., any number of
> repetitions, in any order.  You move around
> with all 4 arrow keys after just one hit of
> the prefix key.  (You can also do so with
> the mouse wheel.)
>
> You can make repeated incremental changes to
> anything.  For (in|de)crementing color
> attributes I use prefix key `C-x t c', then
> an increment/decrement amount, then a color
> attribute key (r, g, b, h, s, v), then
> up/down arrow keys or mouse wheel.  You can
> change to another attribute at any time:
> `C-x t c h 1 up up up v down down r up...'
>          ^            ^           ^
>
> You could use a transient map to implement
> such behavior, but I didn't bother with that
> (done long before that existed).
>
> ___
>
> I've done this with DoReMi since 2004.
>
> https://www.emacswiki.org/emacs/DoReMi

-- 
        Philip Kaludercic on peregrine



reply via email to

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