Module tab

Module tab 

Source
Expand description

Tab CRUD and reorder operations.

Functions§

create_tab
Create a new tab in a workspace. If tab_name is empty, auto-generates “Untitled1”, “Untitled2”, etc. If pinned is true, the tab goes into pinnedtabids instead of tabids.
create_tab_with_opts
Create a new tab with explicit name and pinned options.
delete_tab
Delete a tab and its blocks/layout.
delete_tab_inner 🔒
Internal: delete a tab’s layout and blocks, then the tab itself. Kills shell processes for all blocks before deleting from the database.
reorder_tab
Reorder a tab within a workspace by moving it to a new index.
set_active_tab
Set the active tab in a workspace.