Initializes tabview
Caution: Awaiting to call from vis.events.INIT
Example:
vis.events.subscribe(vis.events.INIT, function()
tabview.init()
end)Closes all tabs
Caution: required to call from vis.events.QUIT
Example:
vis.events.subscribe(vis.events.QUIT, function()
tabview.terminate()
end)Opens new tab
Arguments:
filename:string- filename to openindex:number- Replaceindextabnil- Open new tab
Closes tab
Arguments:
arg:number|string|nilnumber: close tab at indexstring: close tab with name (full)nil: close current tab
Signature: tab_open(filename)
Signature: tab_replace(filename, idx)
Signature: tab_close(idx)
Overriden
Now opens file to new tab.
Displays tab count (Right where you typed that)
Closes current tab
Switches to next/previous tab
Get active window, where tabs changes
Get active tab index
Get tab count
Get tab name
Arguments:
index:number|nilnumber: returns name ofindextabnil: returns name of current tab
Returns:
string- tab name (Full path, or whatever you pass to open this tab)nil- tab not found
There is mine tab mappings for this plugin
-- List throw tabs
vis:map(vis.modes.NORMAL, "th", function() vis:command("prevtab") end)
vis:map(vis.modes.NORMAL, "tl", function() vis:command("nexttab") end)
-- Closes tab, like :q!
vis:map(vis.modes.NORMAL, "tq", function() vis:command("closetab") end)