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: Wed, 09 Oct 2024 19:21:34 +0300 Organization: LINKOV.NET Message-ID: <86zfndi6wh.fsf@mail.linkov.net> References: <87setpdv21.fsf@gmail.com> <877cb09ln4.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14564"; 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 Wed Oct 09 18:24:12 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 1syZTu-0003h2-WC for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Oct 2024 18:24:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1syZTQ-0007Z2-EE; Wed, 09 Oct 2024 12:23:40 -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 1syZTN-0007Yr-Mq for emacs-devel@gnu.org; Wed, 09 Oct 2024 12:23:37 -0400 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1syZTL-0000Yc-Ip; Wed, 09 Oct 2024 12:23:37 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 5CF59C0002; Wed, 9 Oct 2024 16:23:30 +0000 (UTC) In-Reply-To: <878quxdant.fsf@gmail.com> (pranshu sharma's message of "Wed, 09 Oct 2024 16:59:18 +1000") X-GND-Sasl: juri@linkov.net Received-SPF: pass client-ip=217.70.183.198; envelope-from=juri@linkov.net; helo=relay6-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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, 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:324448 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 image-mode-map: s 0 image-transform-reset-to-initial s b image-transform-fit-both s f image-mode-fit-frame s h image-transform-fit-to-height s i image-transform-fit-to-width s m image-transform-set-smoothing s o image-transform-reset-to-original s p image-transform-set-percent s r image-transform-set-rotation s s image-transform-set-scale s w image-transform-fit-to-window >> 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. 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'.