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
shared-link-resolution
2 folders
2 files
Ethan Graf
Move internal-link resolution into DocumentSlotView; wire Zen
3d ago
7bc9fedc
tiling
Move internal-link resolution into DocumentSlotView; wire Zen Link-target resolution (relative-path join + building an OpenDocRequest) lived in the tiling workspace, so each workspace would have to reimplement it. Move it into a shared, pure resolveDocumentLink() and have DocumentSlotView — which already holds the open doc's path and provider — translate a workspace's onOpenEntry into the editor's onOpenLink handler. Now any workspace gets file-to-file link navigation by forwarding the onOpenEntry it already receives: Zen becomes a two-line change, and tiling drops its bespoke handleOpenLink plus the onOpenLink prop threading. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
3 days ago
zen
Move internal-link resolution into DocumentSlotView; wire Zen Link-target resolution (relative-path join + building an OpenDocRequest) lived in the tiling workspace, so each workspace would have to reimplement it. Move it into a shared, pure resolveDocumentLink() and have DocumentSlotView — which already holds the open doc's path and provider — translate a workspace's onOpenEntry into the editor's onOpenLink handler. Now any workspace gets file-to-file link navigation by forwarding the onOpenEntry it already receives: Zen becomes a two-line change, and tiling drops its bespoke handleOpenLink plus the onOpenLink prop threading. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
3 days ago
barSlot.tsx
Move internal-link resolution into DocumentSlotView; wire Zen Link-target resolution (relative-path join + building an OpenDocRequest) lived in the tiling workspace, so each workspace would have to reimplement it. Move it into a shared, pure resolveDocumentLink() and have DocumentSlotView — which already holds the open doc's path and provider — translate a workspace's onOpenEntry into the editor's onOpenLink handler. Now any workspace gets file-to-file link navigation by forwarding the onOpenEntry it already receives: Zen becomes a two-line change, and tiling drops its bespoke handleOpenLink plus the onOpenLink prop threading. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
3 days 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>
3 days ago