Skip to content

feat(app): add optional fast delete to the SFTP file panel - #254

Open
Irzos wants to merge 3 commits into
TooonyChen:mainfrom
Irzos:feature/sftp-quick-delete
Open

Irzos wants to merge 3 commits into
TooonyChen:mainfrom
Irzos:feature/sftp-quick-delete

Conversation

@Irzos

@Irzos Irzos commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add Fast Delete (rm) as an opt-in feature under Options → File manager. When enabled, the Delete submenu in the file table and folder tree offers Regular Delete and Fast Delete (rm). In the file table, the Delete key hint appears on the parent menu item.
  • I suggest calling this Fast Delete (rm) to emphasize that it speeds up bulk deletion. The name Quick Delete (rm) could imply that the action skips the confirmation dialog.
  • Keep Confirm before fast deletion checked by default and let users change it independently. Fast Delete runs rm in a dedicated SSH exec session to speed up the removal of large numbers of files and folders. The dialog shows command errors and omits already removed entries on retry.
  • Add English and Simplified Chinese UI strings and documentation.

Closes #248

Testing

  • Passed go test -race ./..., go vet ./..., and go tool mygo vet on macOS.
  • Headless UI tests covered the default, saved settings, Delete submenu and key hint, cancellation, immediate start when confirmation is disabled, and SSH exec rejection.
  • Verified recursive deletion, literal paths, symlink handling, partial failure, and retry with a temporary local OpenSSH server.

Screenshots

File table context menu

File table context menu with the Delete submenu expanded

File manager settings

fast-delete-settings-en

This branch has not been deployed

No deployments
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.

File Panel Right-Click Menu: Add a "Quick Delete (rm)" option below "Delete"

1 participant