Function: split-tab

split-tab is a function alias and interactive for tab-bar-split-tab, defined in tab-bar.el.gz.

Signature

(split-tab &optional TAB ARG)

Documentation

Split windows of specified TAB into two separate tabs.

TAB defaults to the selected tab. ARG specifies the number of windows to consider for splitting and defaults to 1. Interactively, ARG is the prefix argument.

First divide the child windows of TAB's main window into two parts. The first part includes the first ARG child windows if ARG is positive, or -ARG last windows if it's negative. The second part includes the remaining child windows of TAB's main window. Then clone into a newly-created tab each of the windows of the part which does not include TAB's selected window and delete those windows from TAB.

Probably introduced at or before Emacs version 31.1.

Key Bindings

Aliases

split-tab