即在Adobe Dreamweaver的它可能保存的文件自动复制设置到其他项目的具体位置。如何通过Sublime Text 2实现这一目标?崇高文字2:复制文件保存/备份到另一个文件夹
我在Windows 7上,我不想安装第三方工具(如rsync的用于Windows)观看文件夹,然后采取一个变化的行动。我只想将我的文件保存到两个位置(本地SVN存储库和第二个Windows远程共享文件夹)。
有没有这样做的插件?
即在Adobe Dreamweaver的它可能保存的文件自动复制设置到其他项目的具体位置。如何通过Sublime Text 2实现这一目标?崇高文字2:复制文件保存/备份到另一个文件夹
我在Windows 7上,我不想安装第三方工具(如rsync的用于Windows)观看文件夹,然后采取一个变化的行动。我只想将我的文件保存到两个位置(本地SVN存储库和第二个Windows远程共享文件夹)。
有没有这样做的插件?
现在有适合我的需求的插件:SublimeFileSync
您可以检查出Automatic Backup Plugin。它不会在特定于项目的位置备份文件,但它是每次保存文件时自动保存备份的好方法。
可惜这不是(还)可以读取项目的相对目录路径,所以我不能重写插件代码来将文件的副本保存到正确的位置。 我现在已经成立了一个FTP服务器上我的测试位置,我用的是[崇高SFTP插件(http://wbond.net/sublime_packages/sftp) – dennis
https://github.com/akalongman/sublimetext-autobackups
配置选项:
{
// Don't make changes to this file directly as they can get wiped out when the
// plugin is updated. Instead transfer what you need to the 'Settings - User' file.
// The directory where we'll keep our backups. If empty, we'll try to put them in
// ~/sublime_backups
"backup_dir": "~/sublime_backups",
// If true, also save a backup copy any time a file is opened (if backup file not exists)
"backup_on_open_file": true,
// If true, backups saved per day, in separate folders, for example ~/sublime_backups/2013-05-23/myfile.php
"backup_per_day": true,
// If set, backups saved per second. possible values: false, "folder" or "file"
// false - disabled backup per second
// "folder" - backup example D:/Sublime Text Backups/2013-05-23/095034/myfile.php
// "file" - backup example D:/Sublime Text Backups/2013-05-23/myfile_095034.php
// to use this feature, you must have enabled backup_per_day setting
"backup_per_time": "file",
// Files larger than this many bytes won't be backed up.
"max_backup_file_size_bytes": 262144, // = 256 KB
// Files older than X days will be deleted. If 0 - auto delete disabled
"delete_old_backups": 0, // days to delete
// If true, backup file opened in same line as cursor in original file
"open_in_same_line": true,
// If true, show backup previews (only in ST3)
"show_previews": true
}
出于好奇,请问同步工作?例如,它是否只同步在源文件夹上更改的文件?如果目标中的文件发生更改,该怎么办?他们会被覆盖吗?我问的原因是,我将使用它将项目源文件夹(版本控制下)中的文件复制到Web服务器。网络服务器副本将有许多生成的文件(例如图像,日志文件等),我不想删除,因为项目源是干净的/没有任何这些生成的文件... – Prembo
这正是我所需要的!谢谢! – Paul