Python Forum
Python editor that will SFTP automatically on save - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Python editor that will SFTP automatically on save (/thread-42052.html)



Python editor that will SFTP automatically on save - sawtooth500 - Apr-29-2024

Can anyone recommend a python editor for Windows that will automatically upload my file to the server upon save via SFTP? I prefer a minimalist editor to a full IDE, but if I need to go with a full IDE I'll do it. I've been coding in Notepad++ and I love it for the simplicity - I've tried the NPP FTP plugin for Notepad++ but I still need to manually upload, it won't auto do it on save. So if anyone can suggest a simplistic editor that will... much appreciated!


RE: Python editor that will SFTP automatically on save - Gribouillis - Apr-30-2024

It is not minimalist, but I can do this with the Kate editor in Linux. As Kate can also be installed in Windows, it may work there too.

In the SaveAs dialog or the Open dialog, one can type eg
Output:
sftp://myuser@myhost:/home/myuser/spam.txt
and edit spam.txt. I checked that the file is updated on the distant host on Ctrl-S. You'll need to find how to adapt the path to the file in Windows.

Kate is a very good and user-friendly editor. It is worth trying.