Documentation
¶
Overview ¶
Package tabstrip is the sheet tabs at the left of the status line, the way tmux lists windows: the sheet shown is highlighted, a + adds a sheet, and when the tabs don't all fit, ‹ and › step through them. It lays the strip out and remembers where each sheet was left; what a click on it does is the UI's (showing, renaming, moving a sheet are commands). It needs no host: the UI hands it a View.
Index ¶
Constants ¶
View Source
const NotebookMark = "❯ "
NotebookMark starts a notebook tab's label, so it reads apart from the sheets' without color.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Strip ¶
type Strip struct {
Places map[*sheet.Sheet]Place // where each sheet's cursor and scroll were left
// contains filtered or unexported fields
}
Strip is the sheet tabs' state: where each sheet was left, and how far the strip is scrolled.
type View ¶
type View struct {
Sheets []*sheet.Sheet
Active int
// Hover is the part under the mouse, and HoverIndex the tab for Tab.
Hover Kind
HoverIndex int
// Busy is set while the mouse drags something other than a tab, so
// passing over a tab doesn't highlight it.
Busy bool
}
View is what the strip shows: the sheets, the one shown, and what the mouse is over.
Click to show internal directories.
Click to hide internal directories.