Repository navigation
feat(open): «Открыть папку» and dropping a folder - #35
Merged
Merged
Conversation
Next to «Открыть файл», «Открыть папку» picks a whole folder with the tree and its photos (webkitdirectory; not shown on phones, which cannot pick folders). Dropping a folder on the window walks it, keeping each file's path; hidden folders (.git, .claude) are not walked. Files are shown straight from disk, none is read until shown. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Asked by the owner after #34: open a folder with the tree and its photos, instead of building a zip.
webkitdirectory. It is not shown on phones, which cannot pick a folder.webkitGetAsEntry. Each file keeps its path inside the folder asrelativePath, which the loader reads likewebkitRelativePath. Hidden folders (.git,.claude) and__MACOSXare not walked, so a project folder with thousands of git files drops quickly..gednearest the top, outside hidden folders. Photos are shown straight from disk; nothing is read until shown.Tests:
src/ui/folders.test.ts: walking, paths, hidden folders skipped, plain files unchanged;tests/e2e/open-folder.spec.tswith the fixturetests/fixtures/synthetic/folder-tree, which has a hidden copy of the tree;npm run check:allpasses locally.🤖 Generated with Claude Code