W3cubDocs

/Hammerspoon

hs.tabs

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

API Overview

API Documentation

Functions

enableForApp
Signature hs.tabs.enableForApp(app)
Type Function
Description

Places all the windows of an app into one place and tab them

Parameters
  • app - An hs.application object or the app title
Returns
  • None
Source extensions/tabs/tabs.lua line 145
focusTab
Signature hs.tabs.focusTab(app, num)
Type Function
Description

Focuses 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
Source extensions/tabs/tabs.lua line 180
tabWindows
Signature hs.tabs.tabWindows(app)
Type Function
Description

Gets 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
Source extensions/tabs/tabs.lua line 33

© 2014–2017 Hammerspoon contributors
Licensed under the MIT License.
https://www.hammerspoon.org/docs/hs.tabs.html