NppFTP
NppFTP copied to clipboard
File reload from FTP instead of cache
I noticed a bug, actually, it is not a bug - it is confusing use of functions.
It happens when you open file from NppFTP and then you try to reload it (as you suppose to do with log-files etc.). Instead of reloading from SERVER, the file is just reloaded from CACHE and off course, there is no change of contents you would expect.
To get it reloaded, you need to search it again in complex tree off files inside NppFTP... Maybe function "Reload from FTP" is good solution?
+1
Especially when you use modification detection. Everytime I focus into Notepad++ (in a cached file loaded from a server via NppFtp) I got the question wether I want to reload the content. And if I hit "yes". Nothing happens, because nothing changed in cache.
It might be possible to do this by superclassing the MessageProc. I'll try to get some time to experiment.
What is 'modification detection'? Is this an add-on or built in?
It's a built in feature of npp.
+1 even if you had to go to plugins -> nppftp for resync and resync all, buttons
As stated the reload is a n++ feature and most probably the nppftp plugin even doesn't get any notification that a reload is executed. I will need to check that.
A possible enhancement might be to reload button for all open and unmodified files.
Is there any news on addressing this? I just started using NppFTP and it's great, but having to manually search out and reload my files when they change on the remote disk is throwing off my workflow more than a little.
Automatic remote change detection would be nice, but even a button to manually do a check between the cache and the remote version on all open files at once (or even one file at a time) would be a big help.
I would like this, too. Because even Ctrl-R does not seem to work on FTP files.