From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: chad Newsgroups: gmane.emacs.devel Subject: Re: master 6a2ee981c3: Add new functions for splitting the root window Date: Sun, 11 Sep 2022 14:31:44 -0400 Message-ID: References: <166240424802.11417.12502552895310232639@vcs2.savannah.gnu.org> <20220905185728.838CEC0088A@vcs2.savannah.gnu.org> <86h71kseiw.fsf@mail.linkov.net> <87illzmjew.fsf@gnus.org> <868rmvxdvj.fsf@mail.linkov.net> <87bkrq5bmb.fsf@gnus.org> <87pmg69ifi.fsf@gmail.com> <87h71i3vr3.fsf@gnus.org> <864jxfghcf.fsf@mail.linkov.net> <87sfkygokp.fsf@gnus.org> <87r10hg5u7.fsf@melete.silentflame.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000007854d405e86afed5" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16329"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , Juri Linkov , Robert Pluim , EMACS development team , Hugo Heagren To: Sean Whitton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Sep 11 20:49:30 2022 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 1oXS1J-00041c-Tc for ged-emacs-devel@m.gmane-mx.org; Sun, 11 Sep 2022 20:49:30 +0200 Original-Received: from localhost ([::1]:48370 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXS1I-0005T3-G7 for ged-emacs-devel@m.gmane-mx.org; Sun, 11 Sep 2022 14:49:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54100) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXRkP-0002xn-9j for emacs-devel@gnu.org; Sun, 11 Sep 2022 14:32:11 -0400 Original-Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]:43616) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oXRkN-0004sW-Jk for emacs-devel@gnu.org; Sun, 11 Sep 2022 14:32:01 -0400 Original-Received: by mail-ed1-x533.google.com with SMTP id y8so2857677edc.10 for ; Sun, 11 Sep 2022 11:31:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=syWEob3qCDNIwjcrewzioUOVoeQwd3AO7UpBDs2eQU0=; b=Hlnot3Gx59WKTm3bM60PHbaEYtiOSIJMFphLhs38R+7zryQw+OU3Ui/KmJIBSYaErD Nl/OZCy8au8F8AgQWydkRRum2z9k8j71Gp+84EHdoXQWoiNok5CzhOa2WSoIGUQJPI+P fNN6ZpHAUhk+ieucj7ifjg2Crl4ohEYxKFcsGddI58FK87C3cPCrAOG54//stkPDTLQD 8pBmn427R8XDjOQazNkkb/R2VHjqtLjc8ieY48lQyEceu6ksQyRPfgHlXKoI9KSt9IPV YZunGhj9fgSXlq7oTWFalY3MD3J+1M2K7CNTsKIs9ljEJjy8YH59e1dBzYntXtTJpKvS hM/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=syWEob3qCDNIwjcrewzioUOVoeQwd3AO7UpBDs2eQU0=; b=TklCzxlT6L+scpeBvU+ZmLB3wK8fnet3aYZLK4tlRmHsO6O5aW0CJBDfYOxf6E+OAn XkEtUOTnVpgDae7y09yN++AHTHZrFP1LPElo5f+C1Bm9KtS56NZGlkW8Y90Q5kUxL32k 5l3k2MBdGWO91CKaqcZ3vzxuQRG7oO9hPh7ukqQ0EAiJiJ1FFnec8Sx+O2LWdt5VteXz lVMZl14NtPeINUO3wu+3jjBzVHl3IaOPvg+BMy9H3NMV5uiH8QwnwN/iKU5A8NSHUXRi jg7U18iemo6biARXOdAZP+uPIfgHgbRPWIDdKtXP/rf+P89wyB0DcU99/TxqCOvsUfdi rTSA== X-Gm-Message-State: ACgBeo2Bw3T3DU45OiBbRmBugtOwZmu7+FXjI1pfQ75xky3VTn/EFRXe dM9tN3hjGT1LyPqXa1x8cPFVFn9kXuG2L/Kn1Z8= X-Google-Smtp-Source: AA6agR7tZgSQikZjVlaPMqwDOBQiQpTj3rcuhXdxwBPF18NNvISqugjXZE3gUPGa0F/hwSoZSsj7bKZchP4EVGT0BBU= X-Received: by 2002:a05:6402:f0f:b0:451:1ecd:a61f with SMTP id i15-20020a0564020f0f00b004511ecda61fmr9299397eda.125.1662921117027; Sun, 11 Sep 2022 11:31:57 -0700 (PDT) In-Reply-To: <87r10hg5u7.fsf@melete.silentflame.com> Received-SPF: pass client-ip=2a00:1450:4864:20::533; envelope-from=yandros@gmail.com; helo=mail-ed1-x533.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" Xref: news.gmane.io gmane.emacs.devel:295186 Archived-At: --0000000000007854d405e86afed5 Content-Type: text/plain; charset="UTF-8" On Sun, Sep 11, 2022 at 1:49 PM Sean Whitton wrote: > [...] > C-x w 2 split-root-window-below > C-x w 3 split-root-window-right > C-x w s window-toggle-side-windows > C-x w f tear-off-window [ mnemonic "frame" ] > C-x w t window-swap-states [ mnemonic "tranpose" ] > > C-x w - fit-window-to-buffer [ like C-x - ] > C-x w { shrink-window [ like C-x { ] > C-x w 0 delete-windows-on [ like C-x 0 ] > > Less sure about these being useful enough, or what keys to use for them: > > C-x w + balance-windows-area > C-x w . minimize-window > C-x w b replace-buffer-in-windows > By default, windmove binds shift-left/right/up/down for moving in those directions, and winner binds C-c left/right for undo/redo'ing window configuration changes. I imagine that many people here have established habits for these (if they use them), but, for example, both "left" bindings are also used in Org, and the default machinery for windmove includes an easy way to replace the Shift modifier with another. How about: C-x w left windmove-left C-x w right windmove-right C-x w up windmove-up C-x w down windmove-down C-w w C-z winner-undo C-w w C-S-z winner-redo ~Chad --0000000000007854d405e86afed5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Sun, Sep 11, 2022 at 1:49 PM Sean Whit= ton <spwhitton@spwhitton.nam= e> wrote:
[...]
C-x w 2 split-root-window-below
C-x w 3 split-root-window-right
C-x w s window-toggle-side-windows
C-x w f tear-off-window=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0[ mnemonic "frame" ]
C-x w t window-swap-states=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [ mnemo= nic "tranpose" ]

C-x w - fit-window-to-buffer=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [ like C-x -= ]
C-x w { shrink-window=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0[ like C-x { ]
C-x w 0 delete-windows-on=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[ = like C-x 0 ]

Less sure about these being useful enough, or what keys to use for them:
C-x w + balance-windows-area
C-x w . minimize-window
C-x w b replace-buffer-in-windows

By de= fault, windmove binds shift-left/right/up/down for moving in those directio= ns, and winner binds C-c left/right for undo/redo'ing=C2=A0window confi= guration changes. I imagine that many people here have established habits f= or these (if they use them), but, for example, both "left" bindin= gs are also used in Org, and the default machinery for windmove includes an= easy way to replace the Shift modifier with another. How about:
=
=C2=A0C-x w left windmove-left
=C2=A0C-x w right windmove-righ= t
=C2=A0C-x w up windmove-up
=C2=A0C-x w down windmove-down
=C2=A0= C-w w C-z =C2=A0winner-undo
=C2=A0C-w w C-S-z winner-redo

=C2=A0~Chad
--0000000000007854d405e86afed5--