Sublime Forum

[ solved ] Copy on save

#1

Hello community

Like many people, I’m evaluating moving form netbeans to sublime, so I’m trying to gather the functions I use.

One of them is “copy on save”, i.e., when I save a file edited in the IDE, I want it copied to another location. The idea is that the source folder is separated from the web root folder and must be synchronized.

How can I do that with sublime?

TIA

greg

0 Likes

#2

You’d have to write a plugin. Such a feature is not in-built.

0 Likes

#3

Thanks for your answer.

Do you know of any plugin that does that? or maybe an external software to keep two folders synchronized?

TIA

0 Likes

#4

I’m pretty certain many FTP applications have built-in syncing, for just this scenario. What do you use now?

0 Likes

#5

In fact my problem is not FTP, it’s completly local (from the source folder of my project to the root folder of my local webserver).

It doesnt have to be actually done by Sublime (it could be done with something based on Gamin or such).

Currently I’m using Netbeans (and Eclipse before it).

0 Likes

#6

It might be worth looking into these plugins:
vishalrana.com/local-history/
github.com/joelpt/sublimetext-automatic-backups

…and this forum post:
viewtopic.php?f=4&t=8271&start=0

0 Likes

#7

The SFTP package (a paid plugin by myself) will be gaining local and samba folder support in the near future, in case you don’t find anything else.

0 Likes

#8

Thanks, I did a quick hack plugin and it’s working fine.

0 Likes