NppFTP icon indicating copy to clipboard operation
NppFTP copied to clipboard

Multiple FTP Connections

Open EnginePod opened this issue 7 years ago • 8 comments

It would be mind-blowingly amazing if it was possible to have multiple (S)FTP connections at the same time. The NppFTP window would have tabs at the top for the file browser for each server that you were connected to (as well as an "X" to close the connections).

This way if I wanted to save changes to files on two servers then I could do that without having to disconnect from the first server and then connecting to the second server which would save a ton of time.

Also big thanks to all those who develop this plugin since its super helpful (and I'm sure I'm not the only one who thinks this)! If askhulz could make a tip jar/donation page (buy a coffee/beer) and then share the money among the devs then those of us who appreciate the plugin, but can't write C++ would be able to help contribute. Even something as simple as just setting up a Bitcoin address in a README would do.

EnginePod avatar May 22 '17 23:05 EnginePod

@EnginePod See #77 , multiple n++ instances could be used as a workaround. Do you agree?

chcg avatar May 31 '17 21:05 chcg

This guy seems to have a similar question and I'm actually already using multiple instances just like him (ALT + F6). It's however more of a dirty hack and it would be 10x easier to use if we could add tabs so you wouldn't have to switch windows. Sometimes I have three windows open which leads to clutter and confusion since it's easy to forget which window belongs to which server.

Imagine being able to connect to multiple servers and simply switch using tabs (e.g "Server 1", "Server2", etc.). So if I chose "Server 1" it would display the file manager for that server and also hide files from other servers and only display the opened files for that server. This way you wouldn't have to jump back and fourth between n++ windows and it would all be organized and tidy.

There are also only a few contributors for this plugin, but a lot of people are using it. Learning C++ would take too much time and is pretty much out of the question, but I think it'd be a pretty good (and fair) idea to crowdfund this enhancement and if the $X goal is reached it'd be developed (kickstarter, indiegogo or some other platform).

EnginePod avatar May 31 '17 22:05 EnginePod

Surprising to see how many people that have actually opened an issue requesting this feature.

EnginePod avatar Jun 01 '17 13:06 EnginePod

I subscribe to this enhancement request. Please find here a proposal for multiple ftp connection management. In my opinion is better than using tabs.

Thank you!

nppftp-multi-ftp

slorandus avatar Mar 16 '18 09:03 slorandus

https://github.com/ashkulz/NppFTP/pull/225

My code opens the door to auto-connect in the background to multiple servers on any number of files and profiles. It's still one connection at a time it but should feel rather transparent when changing between them.

I'll look into this functionality after we square up the current code

andymule avatar Jul 21 '18 22:07 andymule

My code now does this. Could use testers. Let me know if you want binaries.

andymule avatar Jul 23 '18 17:07 andymule

@andymule so in other words this will upload the file to the server that it belongs to regardless of which server you're currently connected to (if one at all)? If so, then I'd love to have a binary and try it out (hope it's safe to use).

EnginePod avatar Jul 23 '18 17:07 EnginePod

@EnginePod That's exactly what it does. If you're not connected, or if you're saving a file on a different server than the current active connection, it will try connect to the correct server for that file and upload. You'll see the NppFTP window change in real-time to reflect that, also.

I promise it's safe. Thanks for testing it out and let me know if you have any issues. https://drive.google.com/file/d/1KfQiVjd1PPl_Ic7Xpkiv_kW699ScoJxi/view?usp=sharing

Just drop it into your plugins folder. Mine is C:\Program Files (x86)\Notepad++\plugins

andymule avatar Jul 23 '18 19:07 andymule