all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jeremy Bryant <jb@jeremybryant.net>
To: Philip Kaludercic <philipk@posteo.net>
Cc: Stefan Kangas <stefankangas@gmail.com>,
	 Eli Zaretskii <eliz@gnu.org>,
	ohwoeowho@gmail.com,  emacs-devel@gnu.org
Subject: Re: Suggestion: Ace-window in Emacs core for switching windows?
Date: Tue, 02 Jul 2024 23:31:04 +0100	[thread overview]
Message-ID: <87bk3fbf4n.fsf@jeremybryant.net> (raw)
In-Reply-To: <87cynw7wgv.fsf@posteo.net> (Philip Kaludercic's message of "Mon,  01 Jul 2024 19:17:52 +0000")

Philip Kaludercic <philipk@posteo.net> writes:

> Jeremy Bryant <jb@jeremybryant.net> writes:
>
>> Stefan Kangas <stefankangas@gmail.com> writes:
>>
>>> Philip Kaludercic <philipk@posteo.net> writes:
>>>
>>>> Given that we already have windmove, would the addition of ace-window
>>>> really change that much?
>>>
>>> The same argument could be used for many packages that we have in core.
>>> Who needs Gnus when you have rmail, and so on.  The packages do
>>> basically the same thing, but in very different ways.
>
> That is fair IMO, because the ways /are/ very different.  I just wanted
> to clarify, if the method employed by ace-window is different enough to
> be interesting as an alternative to windmove. 


>> FWIW, my personal reason for using ace-window is due to helping with
>> RSI.  I find that the facility to navigate windows by staying on the
>> home row reduces the travel distance on the keyboard.
>>
>> I recognise that this may not be as essential for other users, and offer
>> these remarks just for wider understanding.
>
> My question is what your experience with windmove has been, and what
> advantage ace-window has over windmove.  E.g. my main configuration
> for

Happy to answer your question:
I used windmove before I started using ace-window, I concur that it is a
useful and intuitive package, and indeed more understandable.

I also like the fact that ace-window naturally scales up; in the case of
2 windows, M-x ace-window (bound to your key of choice), reduces to
simply the equivalent of M-x other-window.
For N>=3 windows, you get the interface explained before.

> windmove is
>
>   (setopt windmove-default-keybindings '(nil . nil))
>
> that binds window switching directly to the arrow keys.  I don't know of
> anyone else who does this (and I know of a few colleges who got annoyed
> at me for doing this), but I think it is neat.  What I am trying to say

I agree it's neat.
But in my personal use case, as explained, I wish to stay on the home row, so I
almost don't use the arrows for anything.

> is that there might be a windmove configuration that would serve you
> just as well, but you just haven't found it yet.  In that case, we need

Yes, it could well be true that there is a another interesting configuration.

> to document the features better, instead of going through the process of
> adding more packages -- as we have seen, that can take a while.

Yes, I accept the bar to adding new packages to Emacs is high

>
>> From ace-window.el:
>> ;; By default, ace-window uses numbers for window labels so the window
>> ;; labeling is intuitively ordered.  But if you prefer to type keys on
>> ;; your home row for quicker access, use this setting:
>> ;;
>> ;;    (setq aw-keys '(?a ?s ?d ?f ?g ?h ?j ?k ?l))
>>
>>
>> I've adapted it to Dvorak layout as:
>> (setq aw-keys '(?a ?s ?d ?f ?g ?h ?j ?k ?l))



  parent reply	other threads:[~2024-07-02 22:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-25 21:37 Suggestion: Ace-window in Emacs core for switching windows? Jeremy Bryant via Emacs development discussions.
2024-06-27  9:49 ` Eli Zaretskii
2024-06-29 22:10   ` Jeremy Bryant
2024-06-30  0:18     ` Philip Kaludercic
2024-06-30  0:35       ` Stefan Kangas
2024-07-01 19:04         ` Jeremy Bryant
2024-07-01 19:17           ` Philip Kaludercic
2024-07-01 22:21             ` Stefan Kangas
2024-07-02 22:31             ` Jeremy Bryant [this message]
2024-06-30  5:00     ` Eli Zaretskii
2024-07-01 19:07       ` Jeremy Bryant

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bk3fbf4n.fsf@jeremybryant.net \
    --to=jb@jeremybryant.net \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=ohwoeowho@gmail.com \
    --cc=philipk@posteo.net \
    --cc=stefankangas@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.