- commit
- a7f1d8f32bb082194a510374a5f751ef36c51001
- parent
- 510f0801ceb7e08fb7addf81495a0b9a612cdede
- author
- Dami <dami.etoile@gmail.com>
| M | internal/ | 8 | ++++++-- |
| M | internal/ | 1 | + |
@@ -46,7 +46,11 @@ const (
4646 // doubleClick is the longest gap between two clicks that edits a cell.4747 const doubleClick = 400 * time.Millisecond4848 49-// Model is the whole application state.49+// Model is the root of the UI, the tea.Model Bubble Tea runs. It holds50+// the file, the mode and the grid, owns a component for everything that51+// takes input or draws a part of the screen, routes each message to the52+// one it's for, and composes the screen from what they draw (panel.go,53+// view.go, overlay.go).5054 type Model struct {5155 // grid is the sheet shown, the active cell, the scroll position, the5256 // window size and the selection; see grid.go.@@ -70,7 +74,7 @@ type Model struct {
7074 prompt *prompt // a question on the context line: prompt.go7175 overlay overlay // the open menu, picker or bar, if any (modeMenu): overlay.go7276 mouse mouseState // drags, hover and double clicks: mouse.go73- tabs tabStrip // the sheet tabs and where each sheet was left: tabs.go77+ tabs tabStrip // the sheet tabs and where each sheet was left: tabstrip.go7478 find *findBar // the last search, reopened by Ctrl+F: find.go7579 charts chartState // chart commands' target: charts.go7680 copied clipboard // what Ctrl+V pastes: clipboard.go@@ -23,6 +23,7 @@ type Span struct {
2323 Style sheet.Style2424 Owner int // column of the cell the text belongs to2525 26+ // Left for the caller to fill in from the owner's value.2627 Link string // the owner's link target, drawn as a hyperlink2728 Error bool // the owner shows an error: its text gets the error mark2829 }