From: Sean Whitton <spwhitton@spwhitton.name>
To: Juri Linkov <juri@linkov.net>
Cc: Lars Ingebrigtsen <larsi@gnus.org>, emacs-devel@gnu.org
Subject: Re: master 6a2ee981c3: Add new functions for splitting the root window
Date: Wed, 14 Sep 2022 09:52:26 -0700 [thread overview]
Message-ID: <87tu59ucdx.fsf@melete.silentflame.com> (raw)
In-Reply-To: <86r10ev44h.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 14 Sep 2022 09:53:18 +0300")
[-- Attachment #1: Type: text/plain, Size: 1308 bytes --]
Hello,
On Wed 14 Sep 2022 at 09:53AM +03, Juri Linkov wrote:
>>> - tear-off-window - C-x w ^ - detach window to a new frame
>>> - tab-window-detach - C-x t ^ w - detach window to a new tab
>>> - tab-detach - C-x t ^ f - detach tab to a new frame
>>
>> My own intuition is that C-x t is for operations *on* tabs, and C-x w
>> for operations *on* windows, so what do you (and others) think about:
>>
>> C-x w ^ f -- tear-off-window
>> C-x w ^ t -- tab-window-detach
>> C-x t ^ -- tab-detach
>
> Nice, these keys also have transitional semantics:
>
> w ^ f - from window to frame
> w ^ t - from window to tab
Indeed!
> So for consistency tab-detach also could be:
>
> t ^ f - from tab to frame
>
> if another key also makes sense:
>
> t ^ w - from tab to window
Do you think it does?
Or perhaps we should do it anyway in case we later want to put another
detach command under the submap -- perhaps we'll want C-x t ^ F for some
variant on tab-detach, since '^' can't be capitalised.
Here is a patch for review, though it's pretty trivial -- I am wondering
if an additional NEWS entry is warranted or not. I don't believe there
are any manual updates required.
Nice to resolve this subthread.
--
Sean Whitton
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Use-key-for-detach-command-bindings.patch --]
[-- Type: text/x-patch, Size: 1476 bytes --]
From 2a128e9796b77f2b1d5c0b779929bd7deebe2ea1 Mon Sep 17 00:00:00 2001
From: Sean Whitton <spwhitton@spwhitton.name>
Date: Wed, 14 Sep 2022 09:49:27 -0700
Subject: [PATCH] Use '^' key for detach command bindings
* lisp/tab-bar.el (tab-prefix-map): Move tear-off-window to C-x w ^ f.
Bind tab-window-detach to C-x w ^ t.
* lisp/window.el (window-prefix-map): Bind tab-detach to C-x t ^ f.
---
lisp/tab-bar.el | 1 +
lisp/window.el | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el
index cf5ae09a24..abefd996a8 100644
--- a/lisp/tab-bar.el
+++ b/lisp/tab-bar.el
@@ -2411,6 +2411,7 @@ 'tab-list
(keymap-set tab-prefix-map "M" #'tab-move-to)
(keymap-set tab-prefix-map "G" #'tab-group)
(keymap-set tab-prefix-map "r" #'tab-rename)
+(keymap-set tab-prefix-map "^ f" #'tab-detach)
(keymap-set tab-prefix-map "RET" #'tab-switch)
(keymap-set tab-prefix-map "b" #'switch-to-buffer-other-tab)
(keymap-set tab-prefix-map "f" #'find-file-other-tab)
diff --git a/lisp/window.el b/lisp/window.el
index d5f42dd10b..905803b19e 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -10593,7 +10593,8 @@ window-prefix-map
"2" #'split-root-window-below
"3" #'split-root-window-right
"s" #'window-toggle-side-windows
- "f" #'tear-off-window
+ "^ f" #'tear-off-window
+ "^ t" #'tab-window-detach
"-" #'fit-window-to-buffer
"0" #'delete-windows-on)
(define-key ctl-x-map "w" window-prefix-map)
--
2.30.2
next prev parent reply other threads:[~2022-09-14 16:52 UTC|newest]
Thread overview: 80+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <166240424802.11417.12502552895310232639@vcs2.savannah.gnu.org>
[not found] ` <20220905185728.838CEC0088A@vcs2.savannah.gnu.org>
2022-09-06 16:17 ` master 6a2ee981c3: Add new functions for splitting the root window Juri Linkov
2022-09-07 0:32 ` Sean Whitton
2022-09-07 12:57 ` Lars Ingebrigtsen
2022-09-07 18:01 ` Juri Linkov
2022-09-08 11:50 ` Lars Ingebrigtsen
2022-09-08 12:09 ` Robert Pluim
2022-09-08 12:18 ` Lars Ingebrigtsen
2022-09-08 14:54 ` [External] : " Drew Adams
2022-09-10 19:27 ` Juri Linkov
2022-09-11 11:03 ` Lars Ingebrigtsen
2022-09-11 17:48 ` Sean Whitton
2022-09-11 18:31 ` chad
2022-09-12 10:00 ` Lars Ingebrigtsen
2022-09-12 14:10 ` Sean Whitton
2022-09-13 11:11 ` Lars Ingebrigtsen
2022-09-13 13:52 ` Sean Whitton
2022-09-13 13:56 ` Lars Ingebrigtsen
2022-09-13 14:12 ` Sean Whitton
2022-09-14 12:29 ` Lars Ingebrigtsen
2022-09-14 13:49 ` Eli Zaretskii
2022-09-14 16:37 ` Sean Whitton
2022-09-14 16:37 ` Sean Whitton
2022-09-12 14:29 ` Visuwesh
2022-09-12 10:04 ` Lars Ingebrigtsen
2022-09-12 14:35 ` Sean Whitton
2022-09-13 4:08 ` Richard Stallman
2022-09-13 14:29 ` [External] : " Drew Adams
2022-09-12 17:34 ` Juri Linkov
2022-09-12 18:57 ` Sean Whitton
2022-09-12 19:31 ` Juri Linkov
2022-09-13 14:01 ` Sean Whitton
2022-09-13 18:29 ` Juri Linkov
2022-09-13 22:12 ` Sean Whitton
2022-09-14 6:53 ` Juri Linkov
2022-09-14 16:52 ` Sean Whitton [this message]
2022-09-14 19:22 ` Juri Linkov
2022-09-14 23:06 ` Sean Whitton
2022-09-15 5:45 ` Eli Zaretskii
2022-09-15 16:14 ` Sean Whitton
2022-09-12 17:50 ` Stefan Monnier
2022-09-12 18:55 ` Sean Whitton
2022-09-12 19:29 ` Juri Linkov
2022-09-12 23:40 ` Sean Whitton
2022-09-13 6:50 ` Juri Linkov
2022-09-13 13:54 ` Sean Whitton
2022-09-13 9:33 ` Gregory Heytings
2022-09-13 11:14 ` Lars Ingebrigtsen
2022-09-13 13:51 ` Sean Whitton
2022-09-13 14:01 ` Gregory Heytings
2022-09-13 14:19 ` Sean Whitton
2022-09-13 14:26 ` Gregory Heytings
2022-09-13 15:22 ` Yuri Khan
2022-09-13 16:33 ` Gregory Heytings
2022-09-13 17:09 ` Yuri Khan
2022-09-13 18:16 ` Juri Linkov
2022-09-13 19:28 ` Gregory Heytings
2022-09-14 6:47 ` Juri Linkov
2022-09-14 8:13 ` Gregory Heytings
2022-09-14 9:21 ` Yuri Khan
2022-09-14 10:51 ` Gregory Heytings
2022-09-14 12:11 ` Yuri Khan
2022-09-15 7:19 ` Augusto Stoffel
2022-09-16 14:30 ` Gregory Heytings
2022-09-16 15:03 ` Augusto Stoffel
2022-09-19 6:53 ` Emanuel Berg
2022-09-08 12:22 ` Gregory Heytings
2022-09-08 14:54 ` [External] : " Drew Adams
2022-09-08 17:25 ` Juri Linkov
2022-09-09 17:07 ` Lars Ingebrigtsen
2022-09-09 17:25 ` Visuwesh
2022-09-09 17:36 ` Lars Ingebrigtsen
2022-09-11 3:37 ` Richard Stallman
2022-09-19 23:55 ` Emanuel Berg
2022-09-20 6:50 ` Juri Linkov
2022-09-20 7:47 ` Emanuel Berg
2022-09-20 16:06 ` Juri Linkov
2022-09-20 21:24 ` Emanuel Berg
2022-09-21 18:41 ` Juri Linkov
2022-09-21 21:16 ` Emanuel Berg
2022-09-09 17:53 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tu59ucdx.fsf@melete.silentflame.com \
--to=spwhitton@spwhitton.name \
--cc=emacs-devel@gnu.org \
--cc=juri@linkov.net \
--cc=larsi@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).