Function: tab-bar-move-window-to-tab

tab-bar-move-window-to-tab is an interactive and byte-compiled function defined in tab-bar.el.gz.

Signature

(tab-bar-move-window-to-tab)

Documentation

Move the selected window to a new tab.

This command removes the selected window from the configuration stored on the current tab, and makes a new tab with that window in its configuration.

Key Bindings

Aliases

tab-window-detach

Source Code

;; Defined in /usr/src/emacs/lisp/tab-bar.el.gz
(defun tab-bar-move-window-to-tab ()
  "Move the selected window to a new tab.
This command removes the selected window from the configuration stored
on the current tab, and makes a new tab with that window in its
configuration."
  (interactive)
  (let ((tab-bar-new-tab-choice 'window))
    (tab-bar-new-tab))
  (tab-bar-switch-to-recent-tab)
  (delete-window)
  (tab-bar-switch-to-recent-tab))