MCPcopy
hub / github.com/Eugeny/tabby / splitTab

Method splitTab

tabby-core/src/components/splitTab.component.ts:707–713  ·  view source on GitHub ↗
(tab: BaseTabComponent, dir: SplitDirection)

Source from the content-addressed store, hash-verified

705 }
706
707 async splitTab (tab: BaseTabComponent, dir: SplitDirection): Promise<BaseTabComponent|null> {
708 const newTab = await this.tabsService.duplicate(tab)
709 if (newTab) {
710 await this.addTab(newTab, tab, dir)
711 }
712 return newTab
713 }
714
715 /**
716 * @returns the immediate parent of `tab`

Callers 2

constructorMethod · 0.95
getItemsMethod · 0.80

Calls 2

addTabMethod · 0.95
duplicateMethod · 0.80

Tested by

no test coverage detected