Can Notepad++ automatically upload local files to the server when I save?

后端 未结 4 1756
离开以前
离开以前 2021-01-04 06:47

I use Notepad++ with its NppFTP plugin. I am required to keep local copies up to date, so I edit the local files then upload them to the server. I\'m wondering if there is a

相关标签:
4条回答
  • 2021-01-04 07:19

    I had the same problem. Solved updating the NppFTP plugin to the latest stable version.

    Cheers!

    0 讨论(0)
  • 2021-01-04 07:25

    I know this question is slightly dated, but I would just like to put out there to alleviate future confusion for anyone who tries to find an answer to this question that as far as I know, NppFTP currently does this by default. There is a window beneath the main file view area that informs you of current FTP operations. Dreamweaver has started crapping out on me regularly so I had to find an equally powerful solution; it seems like Notepad++ just might be that!

    0 讨论(0)
  • 2021-01-04 07:30

    Instead of trying to do this solely with Notepad++, I've gotten a similar workflow using Filezilla as well.

    I set Notepad++ as my default text editor (Edit -> Settings -> File Editing -> Use Custom Editor) in Filezilla.

    I can right-click on a local file (in Filezilla) and press "edit". Whenever I save the file in Notepad++, Filezilla detects the difference and prompts me to upload the file.

    Will reply back to this post once I can get this process to be completely automatic.

    0 讨论(0)
  • 2021-01-04 07:34

    Researching about same problem , i found from the Notepad++ Plugin Manager NppNetNote plugin. It allow you to edit both files at time (Local and remote) wich is like edit local and publish.

    Edit: I'm sorry. Mistake. Now that plugin is called NppDocShare, and acts as server/client for a live document. You can edit a file from two locations (Notepad++ executions) at twice, but cannot edit two files nor emulates the autoupload.

    I'd try the @Gabriel Ryan Nahmias and he's just RIGHT. The NppFTP plugin does that you wanna, but is a little tricky (obvious when you do) to configure.

    By default, the program uses a variable path (Global cache: %CONFIGDIR%\Cache\%USERNAME%@%HOSTNAME%) to store the local copy that is uploaded at save. You need to create a pair folder when create a ftp CONNECTION PROFILE to say to NppFTP plugin how you wanna threat the file/connection. Otherwise, the ftp file goes to global.

    Once the profile is created, i.e; C:\myfolder\ vs / (/ is relative to ftp) any file Edited or Created will be created/autouploaded to FTP at save. Also, you can open the FTP file, and it will be threated as the local one. Untill you save that, the real local file is not overwritten. If you dont like the file from FTP, simply close file and open from the local folder. So, you can chose which document wanna edit at start :)

    Works Like Magic. Now im in love with Notepad++ :)

    Extra: The subfolder creation is not magic. This only works from FTP to Local. You can edit a file from FTP subfolder and the folder plus file will be reproduced into local. No way to create from Local to FTP. You must create the ftp subfolder by hand :X (Unexpected)

    You can manage files by two ways. Creating a profile per folder/proyect or create multiple local cache directories to a single profile. BUT, only the first one will be available (You will reorder it on each use). No magic here :( and it's more easy to create profiles and choose from the droplist at connect.

    Anyway, i think the NppFTP is doing the things very well.

    0 讨论(0)
提交回复
热议问题