From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.devel Subject: Re: Suggestion: Ace-window in Emacs core for switching windows? Date: Mon, 01 Jul 2024 19:17:52 +0000 Message-ID: <87cynw7wgv.fsf@posteo.net> References: <87y16s1z61.fsf@jeremybryant.net> <868qyq67hr.fsf@gnu.org> <87ikxrflie.fsf@jeremybryant.net> <87bk3jwae3.fsf@posteo.net> <87ikxpc4s2.fsf@jeremybryant.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16209"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Kangas , Eli Zaretskii , ohwoeowho@gmail.com, emacs-devel@gnu.org To: Jeremy Bryant Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jul 01 21:18:50 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sOMY4-0003v9-AS for ged-emacs-devel@m.gmane-mx.org; Mon, 01 Jul 2024 21:18:48 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sOMXO-00048J-4Z; Mon, 01 Jul 2024 15:18:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sOMXM-00046Z-Jc for emacs-devel@gnu.org; Mon, 01 Jul 2024 15:18:04 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sOMXI-00080M-AR for emacs-devel@gnu.org; Mon, 01 Jul 2024 15:18:04 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id EAE71240029 for ; Mon, 1 Jul 2024 21:17:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1719861476; bh=PDedNM5e9mefMykTnBv/737xUjt+2cq2moY1dWjxeBk=; h=From:To:Cc:Subject:OpenPGP:Date:Message-ID:MIME-Version: Content-Type:From; b=jIGkpyrYzaP+rdHCVwgndBdJC6056Eqs96j4LxwsprdGqcHkmaNyY94AJVDKlph50 s0mrq1P74tXvvCJ+EHqHLSlnDBHjrPdBfgra/1d4j1QsyGwYgo5oMCGcNedErMAkx+ Zty39JkT4H/yX2lCgyNamp8KR6BYkAugtXO10xt7WRuOoh3NyZ4dt7ZNzPrblqSrSR I1l1ZRU8ksOmHtfY3E6Ut0fgtCw9VZ/3Eh02gdV21CaN/nrvEinHrzV36kH3ej4RNX 8zdayUtFvanXW9ovZJjZ2gYjjfVi7VWD+PVpbWEsu4NQQKVMDQATqqDyz9BtH+48kr 1n95u/o1h+dgA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WCbR65xtpz9rxF; Mon, 1 Jul 2024 21:17:54 +0200 (CEST) In-Reply-To: <87ikxpc4s2.fsf@jeremybryant.net> (Jeremy Bryant's message of "Mon, 01 Jul 2024 20:04:45 +0100") OpenPGP: id=7126E1DE2F0CE35C770BED01F2C3CC513DB89F66; url="https://keys.openpgp.org/vks/v1/by-fingerprint/7126E1DE2F0CE35C770BED01F2C3CC513DB89F66"; preference=signencrypt Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:321064 Archived-At: Jeremy Bryant writes: > Stefan Kangas writes: > >> Philip Kaludercic 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. >> I don't use ace-window myself, but note that it is the 28th most popular >> package on MELPA with 1,773,799 downloads, only slightly behind >> 'which-key' in popularity that we just added to core. >> >> See: https://melpa.org/#/?sort=downloads&asc=false Popularity on MELPA correlates with age, especially since AFAIU they count every upgrade as a download, so I am always hesitant to deduce too much from data like these, especially when the popularity of a package might be due to a missing feature in the core, that has since been added or improved on. >> Until we figure out how to bundle GNU ELPA packages, something that has >> seen little progress in a long time, I think there is a case to be made >> for adding some of the more popular packages to core. > > 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 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 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 to document the features better, instead of going through the process of adding more packages -- as we have seen, that can take a while. > 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)) -- Philip Kaludercic on peregrine