Skip to content

Filebrowser: editable, pasteable path input - #76

Open
Elompenta wants to merge 1 commit into
deflating:mainfrom
Elompenta:filebrowser-path-input
Open

Filebrowser: editable, pasteable path input#76
Elompenta wants to merge 1 commit into
deflating:mainfrom
Elompenta:filebrowser-path-input

Conversation

@Elompenta

Copy link
Copy Markdown
Contributor

Summary

  • Turns the file browser's current-directory display into an editable input: type or paste a path and press Enter to jump the tree there.
  • Strips surrounding quotes from Windows Explorer's "Copy as path" so a pasted path works directly.
  • Reverts to the last valid path on invalid input, showing the server's error in the file list.

Closes #50

Test plan

  • Click the path field, verify it left-aligns and selects the full path for easy overwrite/paste
  • Type/paste a valid path and press Enter — tree jumps to that folder
  • Paste a quoted path ("C:\...\folder") — quotes stripped, tree jumps correctly
  • Enter an invalid path — shows "Not a directory", input reverts to last valid path, navigation still works (↑ button, clicking folders)

Lets the current-directory display accept a typed or pasted path and
jump the tree there on Enter, instead of only navigating by clicking
through folders. Strips surrounding quotes from Windows Explorer's
"Copy as path" so pasted paths work directly.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Filebrowser: paste path

1 participant