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: Sun, 13 Oct 2024 15:43:30 +1000 Message-ID: <87y12smubh.fsf@gmail.com> References: <87setpdv21.fsf@gmail.com> <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> <86v7y00w68.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="23063"; 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 Sun Oct 13 08:19:58 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 1szrxO-0005od-4K for ged-emacs-devel@m.gmane-mx.org; Sun, 13 Oct 2024 08:19:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1szrwu-0008UP-Iv; Sun, 13 Oct 2024 02:19:28 -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 1szrOF-00038w-Eg for emacs-devel@gnu.org; Sun, 13 Oct 2024 01:43:39 -0400 Original-Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1szrOE-0004dS-0r; Sun, 13 Oct 2024 01:43:39 -0400 Original-Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-71e30e56ce5so1861338b3a.1; Sat, 12 Oct 2024 22:43:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728798215; x=1729403015; 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=YzeHrniheoUyGdfzaO/phS20fqNfcCjCuGWUAmW2qAM=; b=ForH6qRsl3CJ1XHWEBfbXtBMUjQsqOjZgxLWERB4D7+VvdBgZ4oAa47k9vbFdiY70H LUYmNHHo0dfAW4ytH4zYt58oshgyRqRKTqBpvsiAkBI+6HjgWJstA3tFvSZwRMBFSBR8 DEGA0uP3hQb7UrpCEG2xehGBxCdFOi68Pilb9AWAoDkNpo1lNle8Axs6MKObEA64GlD+ wKAbydsd/CcBcfsS26L4aUV9lgPY0FmDcdmBi8f5nPW57NSqY7JHEkyguv0u1b29PUWu JEO4ut+VFGMgjl09T31JU1IeW9B2P41vEA6I7Q8R/u62sJ7YhcHxaOiDMEBIsvw1kX0O W52Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728798215; x=1729403015; 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=YzeHrniheoUyGdfzaO/phS20fqNfcCjCuGWUAmW2qAM=; b=WAxcp8PzFlpWUTygJv4oqottX1c0eFV01sZWPSTZRv/TMG1KiPojx7rPenLTrqixJJ vLlnLk/Ob4mpOKQy+AdGukG80u9VNY3sg4EZ6hyanQoWNZmRIToJ6gcHvY28kxQ4Hmw1 ugw/1eARMbtPYmlm9VlFsFMSW0EsbyBDdm82EQ0VF9EoqDVNkOl/0TVzNsPaW8jMKOUY 8k/Wj3W4xicXP2aIPB5viW02dEORpFD8Tnce+6uTxJ45UJMJowHa71lbjEMjYpCtkQk0 c8nBrADJ+e4x74c+3HbuNsOcOJzF2APiG0KzPbCXrPHCTR5467C51cOTCB+8V2eE1iWs nn0w== X-Forwarded-Encrypted: i=1; AJvYcCVwW/g9ixKxP8LUE64Kt3mYAgcBXhN4g4G1ACrzAz2bk8jbns3Km/G3m0yhARCWtHdEIyiW@gnu.org, AJvYcCW7vL1lsQDR9K9rlohwE4XgHsKVXkQiKlYdHKgO/8T/E6ZHXU41CoGXxGqoL10uiYaMN4wsf2vX2YDZJ3w=@gnu.org X-Gm-Message-State: AOJu0YxB4ven5AzIn34rerHqu9o/TPWnNiHl8iYEyVO876/NrzE8s68g U2qBc+FUZ6yhjXOKZSe7FE2PgNPl+9tqZF69C8Kjku7pOnNZGvCfPuZwcJcG X-Google-Smtp-Source: AGHT+IEe2xu1bFgFS2t54zpWDrSrgH59UWEt6wCn2o41iFeVGYtWmiqFv9fZ+t2SboWgCWrOzxLBYA== X-Received: by 2002:aa7:88d1:0:b0:71e:4a51:2007 with SMTP id d2e1a72fcca58-71e4c13daadmr9026706b3a.4.1728798215172; Sat, 12 Oct 2024 22:43:35 -0700 (PDT) Original-Received: from pebl ([2001:8003:7816:8300:4649:cb5d:8749:1d6b]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71e2aa937cesm5059962b3a.132.2024.10.12.22.43.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Oct 2024 22:43:34 -0700 (PDT) In-Reply-To: <86v7y00w68.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 10 Oct 2024 19:57:35 +0300") Received-SPF: pass client-ip=2607:f8b0:4864:20::433; envelope-from=pranshusharma366@gmail.com; helo=mail-pf1-x433.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: Sun, 13 Oct 2024 02:19:27 -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:324536 Archived-At: Juri Linkov writes: > 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 Yeah this seems good. Btw Martin, did you have look at the code for these functions, and think it is ready? I am still waiting on assign@gnu.org(I sent them signed form) but then we can add it. >> 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. toggle window dedicated seems like an extremely useless command tbh, have you should about binding it to C-x w D or C-x w C-d. I prefer the former, but capital keys are not really used in C-x maps, but lots of major modes(gnus,org) use them. Also for the delete-window, you could maybe bind it to C-x w k, for kill window, or C-x w , not perfect but better than nothing. Also is windmove not responiseble for these bindings? >>> 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. If we are also coutning that in, do you think C-x w ^ map should be moved to C-x w t (for tear-off) instead? I mean those keys are frequently used if you have multitab/frame workflow, and pressing 'C-x w ^' a lot is perfect RSI fuel. Also C-x w o for open in new frame/tab could be used.