* A database surface that can be the active tab: either a `zen://database/…` * tab (opened via "New Database") or a `.csv` opened directly as an asset tab * (`zen://asset/Foo.csv`), which EditorPane renders as a database grid. Both * must round-trip through the note jump history so Ctrl+O returns
(path: string | null | undefined)
| 1117 | * must round-trip through the note jump history so Ctrl+O returns to the grid. |
| 1118 | */ |
| 1119 | function isDatabaseSurfaceTabPath(path: string | null | undefined): path is string { |
| 1120 | if (!path) return false |
| 1121 | if (isDatabaseTabPath(path)) return true |
| 1122 | return isAssetTabPath(path) && isDatabaseCsvPath(assetPathFromTab(path) ?? '') |
| 1123 | } |
| 1124 | |
| 1125 | /** |
| 1126 | * Tabs worth recording in the note jump history (Ctrl+O / Ctrl+I): real notes, |
no test coverage detected