#hs.tabs

Place the windows of an application into tabs drawn on its titlebar


#API Overview

Functions - API calls offered directly by the extension


#API Documentation

#Functions

Signaturehs.tabs.enableForApp(app)
TypeFunction
DescriptionPlaces all the windows of an app into one place and tab them
Parameters
  • app - An hs.application object or the app title
Returns
  • None
NotesNone
ExamplesNone
Sourceextensions/tabs/tabs.lua line 145

Signaturehs.tabs.focusTab(app, num)
TypeFunction
DescriptionFocuses a specific tab of an app
Parameters
  • app - An hs.application object previously enabled for tabbing
  • num - A tab number to switch to
Returns
  • None
Notes
  • If num is higher than the number of tabs, the last tab will be focussed
ExamplesNone
Sourceextensions/tabs/tabs.lua line 180

Signaturehs.tabs.tabWindows(app)
TypeFunction
DescriptionGets a list of the tabs of a window
Parameters
  • app - An hs.application object
Returns
  • An array of the tabbed windows of an app in the same order as they would be tabbed
Notes
  • This function can be used when writing tab switchers
ExamplesNone
Sourceextensions/tabs/tabs.lua line 33