2008
09.02

很多人用Editplus, 但是修改了文件后,需要切换到文件目录,点击鼠标右键使用TortoiseSVN的提交菜单项来提交,需要增加很多鼠标点击和确认的操作,对于频繁修改的文件来说,非常麻烦,今天研究了一番,找到个好的解决办法:

先下载 http://www.sliksvn.com/pub/Slik-Subversion-1.5.2-win32.msi 安装上,这是一个在windows上提供标准svn命令行的工具,使用默认安装到C盘的相应目录下即可。

然后把我下面的文件内容复制后保存为tool.ini,存放在editplus的安装目录下。

启动editplus,打开一个svn里面的文件,修改一下,然后按 CTRL+1 即可方便的提交, 按 CTRL + 2 即可更新当前文件,是不是非常方便? 呵呵,绝对的原创内容!
tool.ini文件内容:

[Tools\0]
Count=2
Text=Group 1
[Tools\0\0]
Text=SVN commit
Command=C:\Program Files\SlikSvn\bin\svn.exe
Argument=commit -m "" $(FilePath) --non-interactive
InitDir=$(FileDir)
RedirOut=1
Stdin=0
Plugin=0
Save=1
Pattern=0
Pattern Regex=
Close=0
Help=0
[Tools\1]
Count=0
Text=Group 2
[Tools\2]
Count=0
Text=Group 3
[Tools\3]
Count=0
Text=Group 4
[Tools\4]
Count=0
Text=Group 5
[Tools\5]
Count=0
Text=Group 6
[Tools\6]
Count=0
Text=Group 7
[Tools\7]
Count=0
Text=Group 8
[Tools\8]
Count=0
Text=Group 9
[Tools\9]
Count=0
Text=Group 10
[Tools\0\1]
Text=SVN update
Command=C:\Program Files\SlikSvn\bin\svn.exe
Argument=update $(FilePath)
InitDir=$(FileDir)
RedirOut=1
Stdin=0
Plugin=0
Save=1
Pattern=0
Pattern Regex=
Close=0
Help=0

9 comments so far

Add Your Comment
  1. o(∩_∩)o… 学到了

  2. [...] 1、首先这里有一篇介绍,edtiplus使用SlikSVN来实现update、commit。当然前提也是要安装TortoiseSVN的。 [...]

  3. 试试看哦

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word