Skip to content

feat(files): drag & drop upload from the desktop; folders-first listing - #8

Merged
Atreus-X merged 1 commit into
mainfrom
feature/files-drop-upload
Sep 24, 2026
Merged

Atreus-X merged 1 commit into
mainfrom
feature/files-drop-upload

Conversation

@Atreus-X

Copy link
Copy Markdown
Owner

What

  • Drag & drop upload: drop files or folders from the desktop onto a Files (directory) view to copy them into that folder. Works for local, wsh and wsh-free (SFTP-backed) connections — it reuses FileCopyCommand with a wsh://local/... source, so the SFTP path goes through copyViaServer (files only, 32 MB limit, same as other copies there). A dashed "Drop to upload to …" overlay shows while dragging. Existing names are collected into a single "Overwrite?" prompt; other failures are listed together.
  • Folders first: new preview:dirsfirst setting (default true) lists folders before files for any sort column and direction. Toggle: right-click → Default Settings → Folders First.
  • Fix: rendering and keyboard selection now use the same row order (getDisplayRows). Previously ".." was always rendered first but selection used the raw sorted order, so Enter could open the wrong entry.

Notes

  • Windows paths are sent with forward slashes so the remote side's basename is correct.
  • Codegen run for the new setting (schema, metaconsts, gotypes); docs row added in config.mdx.
  • tsc shows no errors in the changed files (the existing errors in the preview-server mocks are unrelated).

🤖 Generated with Claude Code

https://claude.ai/code/session_01JhvhnSTH8EXbTG9wmtY7dd

…oad; folders-first listing

- Dropping OS files/folders onto a directory view copies them into it (local, wsh and SFTP-backed connections) via FileCopyCommand from wsh://local; a dashed overlay shows the target while dragging. Name conflicts are batched into one "Overwrite?" prompt; other failures are listed together.
- preview:dirsfirst (default true): folders are listed before files for any sort column/direction; toggle under Default Settings > Folders First.
- Rendering and keyboard selection now share one row order (getDisplayRows), fixing Enter opening the wrong entry when ".." wasn't first in the sorted rows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JhvhnSTH8EXbTG9wmtY7dd
@Atreus-X Atreus-X closed this Sep 24, 2026
@Atreus-X Atreus-X reopened this Sep 24, 2026
@Atreus-X
Atreus-X merged commit 3203891 into main Sep 24, 2026
3 checks passed
@Atreus-X
Atreus-X deleted the feature/files-drop-upload branch September 24, 2026 23:48
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.

1 participant