From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Add function to rotate/transpose all windows Date: Thu, 10 Oct 2024 19:57:35 +0300 Organization: LINKOV.NET Message-ID: <86v7y00w68.fsf@mail.linkov.net> References: <87setpdv21.fsf@gmail.com> <9005cccc-7545-4257-b2c0-885a13d3bde2@gmx.at> <86o74aa41b.fsf@gnu.org> <3d4546ac-70d9-4865-b42d-0dc50cb0f3a7@gmx.at> <878qvcgqpu.fsf@gmail.com> <0138d382-8e63-4b53-8c2c-fece826a7d0a@gmx.at> <87plooaw1w.fsf@gmail.com> <87v7yeykr0.fsf@gmail.com> <19ca7821-e034-4ae5-9ff6-570243329d74@gmx.at> <87r09224pe.fsf@gmail.com> <87ikudk62k.fsf@gmail.com> <0d879e95-c37e-416d-b439-daa6384c4f30@gmx.at> <878qv8kws2.fsf@gmail.com> <87ed4xvf60.fsf@gmail.com> <861q0qfnhr.fsf@mail.linkov.net> <878quxdant.fsf@gmail.com> <86zfndi6wh.fsf@mail.linkov.net> <87zfncuqhu.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3933"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) Cc: martin rudalics , Eli Zaretskii , emacs-devel@gnu.org To: pranshu sharma Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 10 19:07:30 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 1sywdO-0000vl-2D for ged-emacs-devel@m.gmane-mx.org; Thu, 10 Oct 2024 19:07:30 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sywcY-0003Fs-FG; Thu, 10 Oct 2024 13:06:38 -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 1sywcW-0003FZ-GB for emacs-devel@gnu.org; Thu, 10 Oct 2024 13:06:36 -0400 Original-Received: from relay9-d.mail.gandi.net ([2001:4b98:dc4:8::229]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sywcU-0001at-BN; Thu, 10 Oct 2024 13:06:36 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id CBEA1FF806; Thu, 10 Oct 2024 17:06:29 +0000 (UTC) In-Reply-To: <87zfncuqhu.fsf@gmail.com> (pranshu sharma's message of "Thu, 10 Oct 2024 21:49:49 +1000") X-GND-Sasl: juri@linkov.net Received-SPF: pass client-ip=2001:4b98:dc4:8::229; envelope-from=juri@linkov.net; helo=relay9-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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:324493 Archived-At: >>>> I recommend to put all these related transform commands on the dedicated >>>> prefix map 'C-x w t', e.g. 'C-x w t t' for transpose-windows, etc. >>> >>> I see, then imo 'C-x w r' would probably be better, nemonic for >>> rerarrange. I don't see any connection between rotating and flipping >>> windows under transposing catagory. >> >> Here is an existing example to get inspiration. >> There are two keymaps on images: >> >> image-map: >> i r image-rotate >> i h image-flip-horizontally >> i v image-flip-vertically > > Whole i map: > i + image-increase-size > i - image-decrease-size > i c image-crop > i h image-flip-horizontally > i o image-save > i r image-rotate > i v image-flip-vertically > i x image-cut > > seems like the pattern here is changing how image is displayed. > > What do you think about rotate/transpose/flip keybindings based of this? Then keybindings could be like these: C-x w r a rotate-windows-anticlockwise C-x w r c rotate-windows-clockwise C-x w r h flip-windows-horizontally C-x w r v flip-windows-vertically C-x w r t transpose-windows >>>> because for example recently we discussed addition of new maps >>>> 'C-x w d ' to delete a window in direction, and >>>> 'C-x w s ' to split a window in direction. >>>> But all these keys are already taken: >>>> 'C-x w d' for 'toggle-window-dedicated' and >>>> 'C-x w s' for 'window-toggle-side-windows'. >>> >>> Is there really need to be so strict, I mean, having semi-nonsencial but >>> useful keybindings is better than not having them in the first place. >>> >>> For example the split window in direction could be 'C-x w n ', >>> 'n' for new window in direction. I would rather this than not having >>> it. (tbh having four arrows not very useful, as C-x 2 and C-x 3 already >>> deal with 2 of them). >> >> 'n' for new is a nice mnemonics indeed. > > Now I think about it, n is better than s, as when you are splitting > something, with an argument, it implies splitting direction (eg angle) > more than new window. 'n' would somewhat imply that a new window is > beign spawned. Agreed. Also there is 'C-x w d' bound to toggle-window-dedicated, so the key [D] can't be used to [D]elete a window neither to [D]isplay a window in the specified direction. >> Or maybe better to move the toggle commands to the prefix 'C-x w t': >> >> 'C-x w t d' for 'toggle-window-dedicated' and >> 'C-x w t s' for 'window-toggle-side-windows'. > > maybe, but my rsi says no Depends on how often these key sequences are used.