Module tabgroups
Tab groups management module
This module allows you to group opened tabs and switch between different groups and tabs in groups
Capabilities
Usage
- Add
require "tabgroups"
to yourrc.lua
. - Press 'x' to open list of defined tabgroups.
- Press 'X' to open list of tabs in active tabgroup.
- (Optional) add the
tgname
widget to your status bar.
Troubleshooting
Files and Directories
Functions
tabgroups.open_new_tab_in_tabgroup (w, group, uri, opts)
Open a given uri in a new tab in the given window.
Parameters
-
wType: tableThe window the tab should be opened in.
-
groupType: tabgroupThe tabgroup the new tab should be added to.
-
uriType: stringThe uri to be opened.
-
optsType: tableAdditional options
tabgroups.move_tab_to_tabgroup (w, view, group)
Move tab to another tabgroup.
Parameters
-
wType: tableThe window the tab should be opened in.
-
viewType: widgetThe webview
-
groupType: tabgroupThe tabgroup the new tab should be added to.
tabgroups.create_tabgroup (w, group_name)
Create a new tabgroup (or fetch one if group_name
is in use).
Parameters
-
wType: tableThe window to be associated with the tabgroup.
-
group_nameType: stringThe name of the new group.
Return Values
-
tableThe tabgroup, newly created or already existing.
tabgroups.switch_tabgroup (w, group)
Switch to specified tabgroup
Parameters
-
wType: tableA window.
-
groupType: stringThe name of the tabgroup to switch to.
tabgroups.delete_tabgroup (w, group)
Delete the specified tabgroup
Parameters
-
wType: tableA window.
-
groupType: stringThe name of the tabgroup to delete.
Return Values
-
booleannil if only one tabgroup exists, true otherwise.
tabgroups.current_tabgroup (object, w)
Return the name of the current tabgroup.
Parameters
-
objectType: any typeThe object to set up for signals.
-
wType: tableA window.
Return Values
-
stringThe name of w's current tabgroup.
Attribution
Copyright
- 2017 Serg Kozhemyakin