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
/
filesystem
/
at
list-improvements
1 folder
2 files
Ethan Graf
Sidebar file drag-and-drop to move files between directories
3w ago
0d2903d1
providers
Sidebar file drag-and-drop to move files between directories Drag a file in the sidebar onto a directory (or the vault root) to move it. - FileSystemProvider gains moveFile(entryId, targetDirId) and a rootId. Local implementation renames across directories (guards same-location and name conflicts); the synced provider syncs afterward like rename. - VaultTree: files are draggable (independent off-screen drag ghost); every row carries data-drop-dir for its enclosing folder, and the tree container resolves the drop target via closest() — so it picks the deepest folder under the cursor, falls through to the root over empty space / root-level files, and clears reliably. The target directory's whole subtree (or the whole tree, for the root) is highlighted. - AppSidebar: handleMove calls provider.moveFile then refreshes the tree. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
3 weeks ago
types.ts
Sidebar file drag-and-drop to move files between directories Drag a file in the sidebar onto a directory (or the vault root) to move it. - FileSystemProvider gains moveFile(entryId, targetDirId) and a rootId. Local implementation renames across directories (guards same-location and name conflicts); the synced provider syncs afterward like rename. - VaultTree: files are draggable (independent off-screen drag ghost); every row carries data-drop-dir for its enclosing folder, and the tree container resolves the drop target via closest() — so it picks the deepest folder under the cursor, falls through to the root over empty space / root-level files, and clears reliably. The target directory's whole subtree (or the whole tree, for the root) is highlighted. - AppSidebar: handleMove calls provider.moveFile then refreshes the tree. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
3 weeks ago
vaultFs.ts
Flesh out sidebar tree UI
1 month ago