@Alexander-Anisimov said in Notepad++ lags when text files are on FTP:
I’m editing text files stored on an FTP server using Notepad++. The problem is Notepad++ “pings” the server every time the window regains focus, causing momentary stutters.
Technically, it’s the NppFTP plugin, not Notepad++ itself, that is doing the pinging.
Is there a way to configure Notepad++ to only sync with the FTP server when I save a file (Ctrl+S)? I want to avoid the constant background syncing and only upload changes on demand, in other words.
Hmm… I cannot actually replicate your problem with constant “pinging” – whether by “window regains focus” you mean the main N++ application window regains focus, or the NppFTP tree-view or queue or message/output window. I am not seeing any unexpected traffic anywhere except when I intentionally open or save.
May be there is a settings that when files are in Notepad++ and in use, it could create separate local temp files for those, or something like that.
It’s up to the NppFTP plugin, not Notepad++ itself. And NppFTP plugin does use local “temp files” (what it calls its “cache”) – and in fact, you can edit the local cache file even when NppFTP isn’t connected, and when you hit save, it will re-connect so that it uploads the file. I cannot find any “extra”/unexpected traffic (“pings” or similar) caused by that plugin. (In fact, one of the longest-lived complaints about the NppFTP plugin is that it doesn’t have a keepalive function, unlike many FTP programs like FileZilla, so users are losing their connection, and it has to reconnect in order to save. Yours is rather the opposite complaint, since they are begging for pings to be added to the plugin.)
If you can come up with an exact set of circumstances, and the exact way you can tell that the plugin “pings” the server (other than a “stutter”, which might be hard for someone to reproduce), then if another user can reproduce the same circumstances, it might be worth filing a bug report with the plugin – but again, there is nothing that the core Notepad++ app can do about it, and right now, I cannot replicate your problem with the plugin.