package
Version:
v0.0.4
Opens a new window with list of versions in this module.
Published: Apr 12, 2020
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package tabs contains helper functions for managing tabs in Altid services
go get github.com/altid/server/tabs
Manager is used to manage tabs accurately for a service
FromFile returns a Manager with all tabs listed in a file added
Active incements the count on a named tab
Default returns the first tab from the list
or none if no tabs exist
Done decrements the count on a named tab
if the tab reference count is 0, mark it as inactive
List returns all currently tracked tabs
Remove a named tab from the internal list
Tab returns a named tab, creating and appending to our list if none exists
Tab represents the state of one open buffer
Activity updates the tab
if tab is active, it will clear any remaining unreads/alerts
if inactive, it will increment the unread count
Source Files
¶
Click to show internal directories.
Click to hide internal directories.