Function: tab-switcher
tab-switcher is an interactive and byte-compiled function defined in
tab-bar.el.gz.
Signature
(tab-switcher)
Documentation
Display a list of named window configurations.
The list is displayed in the buffer *Tabs*.
It's placed in the center of the frame to resemble a window list
displayed by a window switcher in some window managers on Alt+Tab.
In this list of window configurations you can delete or select them. Type ? after invocation to get help on commands available. Type q to remove the list of window configurations from the display.
The first column shows D for a window configuration you have
marked for deletion.
Probably introduced at or before Emacs version 27.1.
Key Bindings
Aliases
Source Code
;; Defined in /usr/src/emacs/lisp/tab-bar.el.gz
;;; Non-graphical access to frame-local tabs (named window configurations)
(defun tab-switcher ()
"Display a list of named window configurations.
The list is displayed in the buffer `*Tabs*'.
It's placed in the center of the frame to resemble a window list
displayed by a window switcher in some window managers on Alt+Tab.
In this list of window configurations you can delete or select them.
Type ? after invocation to get help on commands available.
Type q to remove the list of window configurations from the display.
The first column shows `D' for a window configuration you have
marked for deletion."
(interactive)
(let ((dir default-directory))
(let ((tab-bar-new-tab-choice t)
;; Don't enable tab-bar-mode if it's disabled
(tab-bar-show nil))
(tab-bar-new-tab))
(let ((switch-to-buffer-preserve-window-point nil))
(switch-to-buffer (tab-switcher-noselect)))
(setq default-directory dir))
(message "Commands: d, x; RET; q to quit; ? for help."))