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: [External] : Re: Proposal: new default bindings for winner and windmove Date: Mon, 24 Jun 2024 07:18:28 +0000 Message-ID: <878qyudd17.fsf@posteo.net> References: <87o77rc92p.fsf@posteo.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="31026"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Kangas , Stefan Monnier , Daniel Colascione , "emacs-devel@gnu.org" To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jun 24 09:19:20 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 1sLdyy-0007r0-EQ for ged-emacs-devel@m.gmane-mx.org; Mon, 24 Jun 2024 09:19:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sLdyG-0001GJ-85; Mon, 24 Jun 2024 03:18:36 -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 1sLdyE-0001G4-Rh for emacs-devel@gnu.org; Mon, 24 Jun 2024 03:18:34 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sLdyC-0006eT-Rf for emacs-devel@gnu.org; Mon, 24 Jun 2024 03:18:34 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 1D983240101 for ; Mon, 24 Jun 2024 09:18:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1719213511; bh=gjFP+GmfzjjGCqzFvA+DlqPZHv3QMZDsxn6aUmGm/OA=; h=From:To:Cc:Subject:OpenPGP:Date:Message-ID:MIME-Version: Content-Type:From; b=qZAbASsPpY0EIGBZEyFTw/DPHH7G944atTk8kas2Q/9t5LH+3Vjm5MO0n4B//xse9 ol6s4Fb/gJ+TDOYzrmPqNUgHQ1QTLjUqApjeP3jwLSusY3Ep9S1qi5UzT0cvT1x4F6 oiR2oJev2qKZIAJ6272SrYgQBQ+woOzEZYUpeLKM5fQ1RAbiMKKJBU8Vhu2KFTVmPT GeVc98fwRGHC5teqWlDYK4ZMUZNUEU9tRJj+imYJO3kiv+kjBSXDOF89qTl4Tr3dqp eoDCOZYFI/YPiMhRb8PMyua5HcEnmwRus5wYv3ooUKNuEU6b5Gam2lE4Jz/Cq6w+DZ M2fe489EV6NAw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4W6zpF2QRsz6twV; Mon, 24 Jun 2024 09:18:29 +0200 (CEST) In-Reply-To: (Drew Adams's message of "Mon, 24 Jun 2024 04:23:52 +0000") OpenPGP: id=7126E1DE2F0CE35C770BED01F2C3CC513DB89F66; url="https://keys.openpgp.org/vks/v1/by-fingerprint/7126E1DE2F0CE35C770BED01F2C3CC513DB89F66"; preference=signencrypt Received-SPF: pass client-ip=185.67.36.66; envelope-from=philipk@posteo.net; helo=mout02.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.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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:320591 Archived-At: Drew Adams writes: >> I didn't manage to read the entire thread, but isn't the main issue with >> C-x 4 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 ... > or even a mixture of arrow directions: > C-x 4 , ... 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 , , > , 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