NppFTP icon indicating copy to clipboard operation
NppFTP copied to clipboard

File reload from FTP instead of cache

Open Pilskalns opened this issue 9 years ago • 7 comments

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?

Pilskalns avatar Feb 22 '15 11:02 Pilskalns

+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.

Catscratch avatar Mar 19 '15 14:03 Catscratch

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?

mkerost avatar Mar 19 '15 23:03 mkerost

It's a built in feature of npp.

Catscratch avatar Mar 21 '15 06:03 Catscratch

+1 even if you had to go to plugins -> nppftp for resync and resync all, buttons

AAllport avatar Apr 22 '15 18:04 AAllport

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.

chcg avatar May 31 '17 21:05 chcg

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.

wspear avatar Jun 05 '20 14:06 wspear

I would like this, too. Because even Ctrl-R does not seem to work on FTP files.

szi-secunet avatar Jun 08 '20 15:06 szi-secunet