Add repeat map for tab-bar-history (bug#78804)

Add repeat map similar to that of winner-mode (to which
tab-bar-history is an alternative).

* lisp/tab-bar.el (tab-bar-history-repeat-map): Make the change.
This commit is contained in:
James Thomas 2025-06-16 10:32:29 +05:30 committed by Juri Linkov
parent 477112ebc3
commit a4ca0cd7f0

View file

@ -2528,6 +2528,13 @@ This navigates forward in the history of window configurations."
"C-c <left>" #'tab-bar-history-back
"C-c <right>" #'tab-bar-history-forward)
(defvar-keymap tab-bar-history-repeat-map
:doc "Keymap to repeat tab-bar-history key sequences.
Used in `repeat-mode'."
:repeat t
"<left>" #'tab-bar-history-back
"<right>" #'tab-bar-history-forward)
(define-minor-mode tab-bar-history-mode
"Toggle tab history mode for the tab bar.
Tab history mode remembers window configurations used in every tab,