clearAllTgroupInfo
clearTabTgroup
clearTgroups
clearWindowTgroup
setTabTgroup
setTgroups
setWindowTgroup
tabTgroup
tgroupActivate
tgroupActivateLast
tgroupClearOldInfo
tgroupHandleTabActivated
tgroupHandleTabAttached
tgroupHandleTabCreated
tgroupHandleTabDetached
tgroupHandleTabRemoved
tgroupHandleTabUpdated
tgroupLastTabId
tgroups
tgroupTabs
windowLastTgroup
windowTgroup
  • Clear all stored tab group information.

    Returns Promise<[void, void, void[]]>

  • Clear all the tab groups.

    Parameters

    • Optionalid: number | number[]

      The id(s) of the tab(s). Use the current tab if not specified.

    Returns Promise<void[]>

  • Clear the current window's tab groups.

    Returns Promise<void>

  • Clear the active tab group for the current window.

    Returns Promise<void>

  • Set the a tab's tab group.

    Parameters

    • name: string

      The name of the tab group.

    • Optionalid: number | number[]

      The id(s) of the tab(s). Use the current tab if not specified.

    Returns Promise<void[]>

  • Set the current window's tab groups.

    Parameters

    • groups: Set<string>

      The set of groups.

    Returns Promise<void>

  • Set the active tab group for a window.

    Parameters

    • name: string

      The name of the new active tab group.

    • Optionalid: number

      The id of the window. Use the current window if not specified.

    Returns Promise<void>

  • Return a tab's tab group.

    Parameters

    • Optionalid: number

      The id of the tab. Use the current tab if not specified.

    Returns Promise<string>

  • Activate the previously active tab in a tab group.

    Parameters

    • name: string

      The name of the tab group to switch to.

    Returns Promise<Tab>

  • Activate the last active tab in the last active tab group.

    Return the name of activated tab group.

    Returns Promise<string>

  • Clear stored information for a tab group.

    Parameters

    • oldName: string

      The name of the tab group.

    • OptionalnewName: string

      A name to rename the group to.

    • Optionalid: number

      The id of the window. Use the current window if not specified.

      If newName is specified, add it as a stored group (if it doesn't already exist), set the current window group to it, and set the group for all tabs in the old group to it.

    Returns Promise<any[]>

  • Handle tab activation, possibly switching tab groups.

    If the new tab is from a different tab group, set it as the new tab group, show all its tabs, and hide all tabs from the old tab group.

    Parameters

    • activeInfo: any

    Returns Promise<any[]>

  • Set the tab's tab group to its window's active tab group if there is one.

    Parameters

    • tabId: number

      The id of the tab that was just attached to this window.

    • attachInfo: any

    Returns Promise<void[]>

  • Set the tab's tab group to its window's active tab group if there is one.

    Do nothing if the tab is already associated with a tab group.

    Parameters

    • tab: Tab

      The tab that was just created.

    Returns Promise<void[]>

  • Handle the last tab in a tab group being moved to another window.

    Clear its information.

    Parameters

    • tabId: number
    • detachInfo: any

    Returns Promise<any[]>

  • Handle the last tab in a tab group being closed.

    Clear its information.

    Parameters

    • _tabId: number
    • removeInfo: any

    Returns Promise<any[]>

  • Set or clear a tab's group if it was pinned or unpinned respectively.

    Parameters

    • tabId: number

      The id of the tab that was just updated.

    • changeInfo: any
    • tab: Tab

    Returns Promise<void[]>

  • Return the id of the last selected tab in a tab group.

    Parameters

    • name: string

      The name of the tab group.

    • previous: boolean = false

      Whether to return the tab selected before the last tab.

    Returns Promise<number>

  • Return a set of the current window's tab groups (empty if there are none).

    Returns Promise<Set<string>>

  • Return a list of all tabs in a tab group.

    Parameters

    • name: string

      The name of the tab group.

    • other: boolean = false

      Whether to return the tabs not in the tab group instead.

    • Optionalid: number

      The id of the window. Use the current window if not specified.

    Returns Promise<Tab[]>

  • Parameters

    • Optionalid: number

    Returns Promise<string>

  • Return the active tab group for the a window or undefined.

    Parameters

    • Optionalid: number

      The id of the window. Use the current window if not specified.

    Returns Promise<string>