Iām working on a WinSCP integration (useful to me mostly because of the winscp stored sessions)
Iāll welcome any help, for development or testing.
I adapted sublimatorās QuickBrowseDir plugin; the lazy loading of files is an obvious advantage to FTP browsing.
EDIT: Youāll need AAALoadFirstExtensions for this to work. If itās not really needed, Iāll remove the dependency later.
BitBucket homepage: http://bitbucket.org/gpfsmurf/winscp/wiki/Home
How to use:
The plugin assumes WinSCP is installed in c:\program files\winscp3, if not, change the paths at the beginning of the file.
By default, F12 is used to pop up the session list.
So press F12, it shows a list of winscpās stored sessions. Select one, itāll connect (thatāll take a few seconds) and then you can browse the server.
Choosing a folder will browse to that folder.
Choosing a file will download and open it in Sublime.
You can press F12 again to choose another file.
Whenever you save a file, itās uploaded back to the server automatically.
Choosing ā:close session:ā or closing Sublime will close the current FTP connection. Pressing F12 after that will let you connect to a new server.
Be careful, I only did limited testing.
Question:
In case the user never chooses ā:close session:ā, Iād like to close the session and do some cleanup in the event that sublime is closed. Whatās the best way to do that?
EDIT: changed How to use section