You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Changed
Ctrl+click on a file or folder name now opens an action menu (Cmd+click on macOS, or a plain click with easySsh.plainClick) instead of downloading right away. The menu's title shows the name and its folder (report.log — /var/log/app), the placeholder its size or item count, and Download is first, so Enter downloads:
Download asks where to save: a save dialog for a file, a folder picker for a folder, both starting in your download folder. It shows the progress notification with Cancel. Cancelling the dialog does nothing.
Upload… (folders only) picks local files (and folders on macOS) and uploads them into the clicked folder with the progress notification. The dialog names the target folder, and existing names ask Replace, Keep Both or Skip as before. Dropping files on the terminal still uploads into the current folder.
Open (text files only) opens the file in a VS Code editor tab (easyssh://<connection>/<path>), read and saved over the terminal's SFTP connection. Ctrl+S / Cmd+S saves it back to the server and keeps its permissions, owner and symlinks. Saving asks before overwriting a file that changed on the server, and says so clearly when the terminal is disconnected or closed. Text files over 5 MB ask first (Open Anyway, Download, Cancel). Open is hidden for archives, images, programs and other binary files: by name, or for unknown names by reading the first 8 KB (NUL bytes or invalid UTF-8).
Rename… suggests the current name with the part before the extension selected, refuses empty names, / and names that already exist, and asks once more before renaming over SFTP.
Delete… always asks. For a folder it counts the files first (Delete folder "logs" and its 128 files?, or 5000+ files), then deletes it with everything in it over SFTP, with progress and Cancel for big folders. For a symlink only the link is deleted.
Link tooltips and the hint above the shell list the actions instead of "Download".
README: new infographic, demo GIF and screenshots of the action menu, the editor tab, the large-file question and the save conflict.
Fixed
Names created, renamed or deleted by a command (mv, touch, mkdir, cp, tar…) are clickable, or stop being links, as soon as the prompt is back. Before, the folder was only listed again after a cd. Easy SSH now lists it again after every command (once for several quick prompts; a folder with more than 2000 names only when its modification time changed).
A Ctrl+click could act on the name a row showed earlier: when the pointer stayed on a row while its text changed (for example after clear && ls), VS Code kept offering the old link. Easy SSH now checks that the row still shows the text the link was made for. If not, it uses the name now under the link, or asks you to click again when that is unclear.