Skip to content

feat(app): upload files pasted into the SFTP table - #1

Closed
Irzos wants to merge 1 commit into
mainfrom
feature/sftp-paste-upload
Closed

Irzos wants to merge 1 commit into
mainfrom
feature/sftp-paste-upload

Conversation

@Irzos

@Irzos Irzos commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Summary

Copy one or more files or folders in the system file manager, focus the remote SFTP table, and press Cmd+V on macOS or Ctrl+V on Windows and Linux to upload them to the displayed directory.

The shortcut is scoped to the table. MyGo reads local file paths from native file lists or URI lists, and the existing SFTP upload flow handles transfer progress and overwrite confirmation. The focus scope preserves text paste in the terminal and path field and keeps the table inert during a modal. The English and Simplified Chinese feature guides describe the shortcut.

Closes TooonyChen#218

Testing

  • go test -race ./...
  • go vet ./...
  • go tool mygo vet
  • go build ./...
  • Added a MyGo UI regression test with an in-process SFTP server. It covers empty-table focus, file and folder upload, text paste isolation, key repeat, the macOS Edit menu command, and focus restoration after dismissing the overwrite dialog.
  • Clipboard and focus paths were exercised in MyGo's headless UI tester on macOS. Native file-manager interactions remain unverified.

@Irzos Irzos closed this Nov 19, 2026
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