alpha
Login
or
Join now
eagraf.dev
/
textile
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
A local-first note taking app
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
textile
/
src
/
workspaces
/
at
main
2 folders
2 files
Ethan Graf
Add Edit/View mode toggle with per-tab state and link navigation
22hrs ago
561eaa9b
tiling
Add Edit/View mode toggle with per-tab state and link navigation Introduce a distinct read-only "view" rendering mode alongside the existing live-preview "edit" mode, toggled per-tab from a segmented control in the bottom bar. Rendering: view mode is expressed as "the cursor is nowhere" — the four cursor-proximity helpers in livePreview/context.ts short-circuit when the new editorModeFacet is 'view', so every element hides its syntax and stays rendered with no per-builder change. The editor drives the facet (plus EditorState.readOnly) through a runtime-reconfigured compartment, so toggling preserves cursor/scroll/history. State: mode lives on each TileTab so it rides along on drag/move and persists per tab (layout VERSION 2, reads v1). The toggle reads/writes the active tab's mode via the tiling workspace's tab-state hook. Links: in view mode a plain click opens a link (edit mode keeps cmd/ctrl-click); external URLs open in the browser, internal targets resolve against the current document and open in the same tile. Links show a pointer cursor in view mode. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
22 hours ago
zen
Tabs per tile (phase 2) + per-vault workspace state Tab strip UI and per-vault layout persistence on top of the phase-1 tab model. - TileTabStrip: per-tile tab chips (select/close, middle-click, +). Empty tabs are not chips — they render TileStartView, a quick-actions start page whose only action is "New File" (wired to App.handleNewFile: createFile + open). + reuses an existing empty tab (findEmptyTab). - tiling.tsx: render the strip + active tab; close-the-last-tab collapses the split via model.removeLeaf / planTileRemoval (pure, tested). - Per-vault state: WorkspaceHost mounts one instance per (kind x vault) and shows only the active one, preserving each vault's tile layout, tabs, and open documents across vault/mode switches. Inactive instances are gated by `active` (ignore opens, suppress bottom bar, no split handle) via WorkspaceProps.active + barSlot WorkspaceActiveProvider. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 month ago
barSlot.tsx
Tabs per tile (phase 2) + per-vault workspace state Tab strip UI and per-vault layout persistence on top of the phase-1 tab model. - TileTabStrip: per-tile tab chips (select/close, middle-click, +). Empty tabs are not chips — they render TileStartView, a quick-actions start page whose only action is "New File" (wired to App.handleNewFile: createFile + open). + reuses an existing empty tab (findEmptyTab). - tiling.tsx: render the strip + active tab; close-the-last-tab collapses the split via model.removeLeaf / planTileRemoval (pure, tested). - Per-vault state: WorkspaceHost mounts one instance per (kind x vault) and shows only the active one, preserving each vault's tile layout, tabs, and open documents across vault/mode switches. Inactive instances are gated by `active` (ignore opens, suppress bottom bar, no split handle) via WorkspaceProps.active + barSlot WorkspaceActiveProvider. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 month ago
workspace.tsx
Add Edit/View mode toggle with per-tab state and link navigation Introduce a distinct read-only "view" rendering mode alongside the existing live-preview "edit" mode, toggled per-tab from a segmented control in the bottom bar. Rendering: view mode is expressed as "the cursor is nowhere" — the four cursor-proximity helpers in livePreview/context.ts short-circuit when the new editorModeFacet is 'view', so every element hides its syntax and stays rendered with no per-builder change. The editor drives the facet (plus EditorState.readOnly) through a runtime-reconfigured compartment, so toggling preserves cursor/scroll/history. State: mode lives on each TileTab so it rides along on drag/move and persists per tab (layout VERSION 2, reads v1). The toggle reads/writes the active tab's mode via the tiling workspace's tab-state hook. Links: in view mode a plain click opens a link (edit mode keeps cmd/ctrl-click); external URLs open in the browser, internal targets resolve against the current document and open in the same tile. Links show a pointer cursor in view mode. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
22 hours ago