Allows to edit multiple tabs independantly.
Caution: consumes new windows if it haven't assigned owner property
To download it:
git clone https://github.com/stalker57241/tabview ~/.config/vis/plugins/tabviewAdd to visrc.lua
local tabview = require('plugins/tabview')
-- If installed throw vis-plug
local tabview = plug.plugins.tabview
vis.events.subscribe(vis.events.INIT, function()
tabview.init()
end)Available at TabDisplay.
:open <filename>creates new tab. Overriden:nexttab/:prevtab: opens next/previous tab. Tabs is cycled:tabcountshows tab count. Duplicate proof:closetabcloses current tab, cancelling changes- Don't forget to save them.
There is interesting variants to bind it:
-- View active tab count
vis:map(vis.modes.NORMAL, "<C-t>t", function() vis:command("tabcount") end)
-- List tabs
vis:map(vis.modes.NORMAL, "<C-t>h", function() vis:command("prevtab") end)
vis:map(vis.modes.NORMAL, "<C-t>l", function() vis:command("nexttab") end)
-- Closes tab, like :q!
vis:map(vis.modes.NORMAL, "<C-t>q!", function() vis:command("closetab") end)- Optional: Optionally depends of this plugin
- Required: Depends of this plugin
- Required
Changes:
Adds ui for listing tabs, using API
- Optional
Changes: Now file selection opens a new tab.
- Add frontend for this plugin (
TabDisplay) - Add
:wt <filename|idx>to save changes fpr specified tab - Add
:wtallto save all changes for tabs. - Add tabs for each window
API available here