From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: pranshu sharma Newsgroups: gmane.emacs.devel Subject: Re: Add function to rotate/transpose all windows Date: Thu, 10 Oct 2024 21:49:49 +1000 Message-ID: <87zfncuqhu.fsf@gmail.com> 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> <86zfndi6wh.fsf@mail.linkov.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="16206"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: martin rudalics , Eli Zaretskii , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 10 14:07:38 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 1syrxC-00044D-K8 for ged-emacs-devel@m.gmane-mx.org; Thu, 10 Oct 2024 14:07:38 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1syrwc-0000Lg-6U; Thu, 10 Oct 2024 08:07:02 -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 1syrg9-0003uA-Bl for emacs-devel@gnu.org; Thu, 10 Oct 2024 07:50:02 -0400 Original-Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1syrg7-0000ny-QQ; Thu, 10 Oct 2024 07:50:01 -0400 Original-Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-20b7eb9e81eso8233745ad.2; Thu, 10 Oct 2024 04:49:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728560995; x=1729165795; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=3MDsB3hFAgIJZTvX5KaSFi+bL7mpXr4Y8pM3LSwoHnc=; b=AISgLmLifUE5l+qPoRam1UMm2vCYMRw9OLTCzj73vqz8xe+G+8hdT4gG0K5NGWm7jX hJrrlb0ZdGqpkp6rDrEjfwpByyhoJOnOkRyef2Lzq6g1gp3fhM+o0epVW4HGB+MbvgJQ KBADfC1dg4WZurhS+d3cWdueFCf9gDBPIdp714FAqqHJGO6RLGGKtUGzfJgD+/o/acqZ UxCiLZEcVj2J3E2TX1n9j4HNgNJ/upo7UmNUfEZ+eiixDrUXKHZ26K7BKCh36FzvlJOZ el9ruB1xgZyg5vfExPgC4qosEEVfX8amTxlrk5IW74CmJ5SIevZTWxVSAcZNX4cjp0zt tMTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728560995; x=1729165795; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=3MDsB3hFAgIJZTvX5KaSFi+bL7mpXr4Y8pM3LSwoHnc=; b=XGKzQURMLwJCd++FOogbur9tRVUWZPW61pyzqRsZnD43stOQXZoPnun/rBSw0Tir4+ jLZ97ewC5RR0AieZUmiRnLPwZH5B7/dgtPbGZondZucp2no4F1VrPrPOSqb68XQVvEJF wFa6ebkd0TT4zEerjm4mCblDkr5CPlw84FwSYI2L0qzCzS1tzNM52VUyI9DhFGjI/cuk hkpP9gKdPGE3hH29EevUAWzSKVVP7NIH3ulk5g1LKMgZXoJtDRDsKv5xpYUjdCQ1Tig1 h3XDkAURL4Ips1kd0/oLV3pOhZNI/Xzpqpg07nI6xJ6+ZN4mLfjFDo/wUGktl4Ki0Zrb AiSQ== X-Forwarded-Encrypted: i=1; AJvYcCUkL5oTLNc45wwsh3wCa88GHtgWKHux6I/nAURXeW3Jjo9XIhWZRKWAbA7z6rVjAyEv/e84QotCJPY/vHM=@gnu.org, AJvYcCXsiVZFE6Zn6+gnRMZICHcz7Fzrh1wDJByp+TArnPOeBXsXqBPo+bjV7+Sj6JITKDvIJCfk@gnu.org X-Gm-Message-State: AOJu0YxVRWc6mo34dhXnMyFhGJN3P53WUx4nraQ+KYLxvFD/mPZfuHX+ +edR33zxPICTf+s8sRQsJ7WCxYZ/W1E5ivFLQfL69l2/pkcd5RY9OhDnLE/j X-Google-Smtp-Source: AGHT+IH/YasalGuRSDqjqhJcL1YCdoxLYqsZT27kH30dl00H/3brHoo4MYfxUsg7IB/3BQ2c6YDs5Q== X-Received: by 2002:a17:902:d50b:b0:20b:419e:9f15 with SMTP id d9443c01a7336-20c6377d1aemr74916135ad.46.1728560995355; Thu, 10 Oct 2024 04:49:55 -0700 (PDT) Original-Received: from pebl ([2001:8003:7816:8300:9dc4:8ea1:7655:25ad]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20c8c33ff35sm8192545ad.267.2024.10.10.04.49.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2024 04:49:55 -0700 (PDT) In-Reply-To: <86zfndi6wh.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 09 Oct 2024 19:21:34 +0300") Received-SPF: pass client-ip=2607:f8b0:4864:20::62d; envelope-from=pranshusharma366@gmail.com; helo=mail-pl1-x62d.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 10 Oct 2024 08:07:00 -0400 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:324486 Archived-At: Juri Linkov writes: >>> 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? >>> 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. > 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