ashkulz / NppFTP

Plugin for Notepad++ allowing FTP, FTPS, FTPES and SFTP communications
https://ashkulz.github.io/NppFTP/
321 stars 93 forks source link

2 simple feature requests! #210

Open cronoklee opened 6 years ago

cronoklee commented 6 years ago

If these exist or I can add them myself somehow I'd love to know how!

1. Shortcut keys Shortcut keys for uploading/downloading the open file (suggest CTRL+SHIFT+ U for upload +D for download to keep in line with other editors.) Ideally the open file should automatically save on upload.

2. Warnings NppFTP should warn the user when the file on the server has changed since they last uploaded. This is crucial for projects which have more than one developer uploading to them.

chcg commented 6 years ago

ad1, Regarding additional shortcuts: http://www.technoxide.com/2014/03/change-notepad-plus-plus-short-cut.html , but that requires additional menu entries for download and upload + some logic behind to get the expected files on the ftp server.

ad 2, Based on file size or a real file comparison?

cronoklee commented 6 years ago

Thanks for shortcut info. Menu entries for uploading the active file would be perfect. Then we could map shortcuts as needed using that awesome system.

Regards file-change warnings. Most robust solution might be to store a log of last upload times for each file (request file mod time from server after writing the file for best compatibility). Then before overwriting the server file each upload, check its mod time against our log and throw a warning if it doesn't match.