bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#41691: [PATCH] Add bookmark-jump-other-tab


From: Juri Linkov
Subject: bug#41691: [PATCH] Add bookmark-jump-other-tab
Date: Thu, 04 Jun 2020 02:00:32 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

> Personally I hope that every "-other-window" command doesn't get an
> "-other-tab" counterpart (to go along with "-other-frame"), but rather
> that a single systematic method is developed, like the elpa.gnu.org
> package other-frame-window. Ref eg
>
> https://lists.gnu.org/r/emacs-devel/2019-10/msg00261.html
>
> (AFAICS nothing has been implemented)

Actually, this is already implemented, but without an obvious keybinding.
This small patch binds a general command to 'C-x t t' (or maybe a better
key would be 'C-x t w').

Then after typing 'C-x t t' as a prefix key sequence,
the next command will display its buffer in a new tab:

diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el
index 76e7f8c33a..529f5e5e4b 100644
--- a/lisp/tab-bar.el
+++ b/lisp/tab-bar.el
@@ -1585,6 +1585,7 @@ tab-prefix-map
 (define-key tab-prefix-map "b" 'switch-to-buffer-other-tab)
 (define-key tab-prefix-map "f" 'find-file-other-tab)
 (define-key tab-prefix-map "\C-f" 'find-file-other-tab)
+(define-key tab-prefix-map "t" 'windmove-display-new-tab)
 
 
 (provide 'tab-bar)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]