From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.devel Subject: Re: master 6a2ee981c3: Add new functions for splitting the root window Date: Tue, 13 Sep 2022 19:28:34 +0000 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> <86o7vjw432.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29370"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , Sean Whitton , Lars Ingebrigtsen , Robert Pluim , emacs-devel@gnu.org, Hugo Heagren To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 13 21:31:04 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 1oYBcc-0007RG-AR for ged-emacs-devel@m.gmane-mx.org; Tue, 13 Sep 2022 21:31:02 +0200 Original-Received: from localhost ([::1]:44918 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYBcb-0003MM-Da for ged-emacs-devel@m.gmane-mx.org; Tue, 13 Sep 2022 15:31:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47718) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYBaI-0001hZ-6c for emacs-devel@gnu.org; Tue, 13 Sep 2022 15:28:38 -0400 Original-Received: from heytings.org ([95.142.160.155]:37992) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYBaG-0001Kx-Mj for emacs-devel@gnu.org; Tue, 13 Sep 2022 15:28:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1663097314; bh=mBH/CbOr0N72HPj9hu29/DNQZp6eGtpHsPAX3IH4T38=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=Q0QRW6X3YkWRm0Jt00tv2d6TKp1MKrBbWwkAJKB9cS0s9pGdX3TnFh7VvnApQ+KWx fC8K82tzVx+6RYaL2Rrd/BGEq3+lV5gKNPpNNgikkYhiebRGFhVv4MVbOhW20S8p4P l4XAJ6fcQpAky10qxOfqya24IES9VTq7ngaTt+b0QSx7SdPj5IU0tKnNIyRpdrK0nL zNh2rkKsRSJGNMS8gcpJK+L4JKuRlTJt8MrMh0WduSYnyclh4GGa/L22qvtkST3uLg JdFlgJH/f8Sorsbt7vMEuwHhjRCP5cg2YV0Khgmp2Ra1BO0oKU0xKw7lr6UfeD/LN2 /4TFTjna6iiVg== In-Reply-To: <86o7vjw432.fsf@mail.linkov.net> Received-SPF: pass client-ip=95.142.160.155; envelope-from=gregory@heytings.org; helo=heytings.org 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, SPF_HELO_PASS=-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:295278 Archived-At: >> C-x w | split-window-right >> C-u C-x w | split-root-window-right >> C-x w - split-window-below >> C-u C-x w - split-root-window-below > > These are really not easier to type than 'C-x 2' and 'C-x 3'. I'd rather > type simply 'C-u C-x 2' and 'C-u C-x 3' to split the root window. > But (1) C-u C-x 2 and C-u C-x 3 are already taken, and (2) unlike 2 and 3, | and - have a visual relation with the meaning of the command. That being said, I won't try to convince anyone here, again I just shared a part of my configuration which I thought could be useful in this discussion. >> C-x w h window-height-adjust with + - = (repeatable) >> C-x w w window-width-adjust with + - = (repeatable) > > These could be also repeatable with arrow keys, and one keymap 'C-x w r' > with mnemonic "resize". > But then you lose the possibility to fit the window to the buffer vertically and horizontally (which is what the = key does in both cases), at least not without using some arbitrary keys for the two cases. In practice I rarely adjust both the width and height of a window, but perhaps that's only me. >> C-x w m maximize-window-toggle C-u C-x w m minimize-window > > Window managers have shortcut keys 'x' for maximize, and 'n' for > minimize. > Out of curiosity: which window managers?