NppFTP
NppFTP copied to clipboard
Multiple connections
I've used Notepad++ for years and I'm extremely satisfied with what the developers and the community has put into this editor. I have to admit that I've even tried Sublime and to see a free editor beat a paid one is impressive.
There has however been one thing that has always bugged me; the FTP plugin. While NppFTP is useful, it could be heavily revamped to fix the bugs that causes Notepad++ to sometimes crash when connecting to a server or viewing a certain folder/file on the FTP server and to allow multiple connections.
Sublime has a third-party plugin similar to NppFTP which supports multiple FTP connections. There could be three files open, each belonging to a different FTP server and you could easily upload the edited files by simply saving the changes.
In NppFTP you would need to connect to the FTP server that the file belongs to and then save the file otherwise you would only save it locally and not on the FTP. There are a lot of messy ways to get around the problem, for example: http://superuser.com/questions/47497/what-is-the-way-to-use-ftp-and-notepad-without-using-its-build-in-ftp-or-a-ft
But when we have a such a useful editor, why can't we have an FTP plugin of the same quality?
Now instead of ranting about how we need to improve NppFTP or create a new revamped FTP plugin I want to create a bounty. To show that I'm serious I will personally put in 250 USD paid in BTC or by PayPal to the developer(s). If anyone else is interested in contributing to the bounty then that would be great.
Considering that I'm an almost unknown member I would not be reliable enough to hold donations belonging to others. If a very trusted member could take on the responsibility of opening a Bitcoin wallet that would hold the funds then that would help out tremendously.
Original thread: https://sourceforge.net/p/notepad-plus/discussion/331753/thread/06f01154/
I've already somewhat fixed this in my fork (which I will put in a proper merge request when I get a free chunk of time). It supports having files open in different ftp profiles. When you save the file, it ensures it is uploaded to the ftp profile it corresponds to. If the file you are uploading is not currently the active ftp connection, it closes the current connection and open one for that file. This is similar behavior to what PSPad does.
The better way would be to fully support multiple ftp connections. If the file is not owned by the active ftp connection, open a background ftp thread and upload the file, and do not change the currently active ftp connection. However, the way NppFTP is structured, this vastly expands the amount of changes that would be need to be made to the code.
I also added support for NOOP in my fork, which solved the problem I was having with Npp being unresponsive because the current connection had terminated.
That's perfect! Is there a way that we can support this project by donating?
Could you also please provide us with an ETA on when this will be released?
There is also another small bug that has been frustrating both I and a few friends (most probably other users as well) for a few years which I completely forgot to mention.
When a new file is created and uploaded to the FTP server the user is then required to once again open the file that is on the FTP and close the local copy in order to continue editing the file that is on the server.
The perfect scenario would be that when the local file is uploaded to the FTP then it would also open the file instantly after uploading it so we wouldn't have to open the file again, it would instead automatically open up.
I will try to submit a merge request by the end of the weekend. ashkulz will need time to review it.
If you are interested in testing out my fork, you can download a compiled dll version here:
http://wikisend.com/download/454252/NppFTP.dll
For changelog, see:
https://github.com/ashkulz/NppFTP/issues/20
This is really interesting and I can't wait until it's added. To keep things stable I'll wait until Mr. Kulkarni has reviewed it.
I would put in at least $100 for this too. How about using https://www.bountysource.com/?
Just need to find a day to redo the coding and put in a proper git request. Wish it wasn't the busy time of year for me. :(
this approach seems like a welcome first step and i would like to hear what has transpired.
thank you,
johann
Any news about this?
I doubt that this project is still alive. Hopefully I am wrong. :fearful:
@mkerost @ashkulz Seems the changes are currently just available as preview within the branch https://github.com/ashkulz/NppFTP/tree/mkerost, but never resulting in a PR and merge to the master. How should we proceed (as there are some related issues like e.g. #19, #77 , #159, ) ?
I don't think the chances of having @mkerost reply are high since he was last active back in Dec. of 2015. He was however kind of to share the code so maybe it'd be possible to integrate it into the plugin(?).
My code does exactly what @mkerost said that his code does
https://github.com/ashkulz/NppFTP/pull/225
I plan to push this all the way through. Wouldn't mind that paypal bounty when it's all sorted ;)
hi, i have tried your feature, works nice, very appreciate your plugin. I have a request: would be nice to have ip:port. Let's say i am using different port for the same ip, the actual plugin will always push to the first ip that matched.