diff options
author | anekos | 2010-05-17 11:57:56 +0000 |
---|---|---|
committer | anekos | 2010-05-17 11:57:56 +0000 |
commit | 9d708ac93f7737f42ffdd21e4162bbeca0a5bc1a (patch) | |
tree | 152d71f09ffabe99abcc198c7f59134b30108f56 | |
parent | 0346f56396cfff9ab29f3de53df64fe092de9f2c (diff) | |
download | vimperator-plugins-9d708ac93f7737f42ffdd21e4162bbeca0a5bc1a.tar.bz2 |
API追加
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37603 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r-- | auto_source.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/auto_source.js b/auto_source.js index 47cf4d9..05fac54 100644 --- a/auto_source.js +++ b/auto_source.js @@ -38,10 +38,10 @@ let PLUGIN_INFO = <name>Auto Source</name> <description>Sourcing automatically when the specified file is modified.</description> <description lang="ja">指定のファイルが変更されたら自動で :so する。</description> - <version>1.6.0</version> + <version>1.7.0</version> <author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author> <minVersion>2.3</minVersion> - <maxVersion>2.3</maxVersion> + <maxVersion>2.4</maxVersion> <updateURL>http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/auto_source.js</updateURL> <license>new BSD License (Please read the source code comments of this plugin)</license> <license lang="ja">修正BSDライセンス (ソースコードのコメントを参照してください)</license> @@ -191,12 +191,12 @@ let INFO = 'Sourcing automatically when the specified file is modified.', function (arg) { (arg.bang ? killWatcher : startWatching)( - expandPath(arg[0]), arg['-command'], arg['-force'], arg['-help'] + expandPath(arg.literalArg), arg['-command'], arg['-force'], arg['-help'] ); }, { bang: true, - argCount: '1', + literal: 0, options: [ [['-command', '-c'], commands.OPTION_STRING], [['-force', '-f'], commands.OPTION_NOARG], @@ -216,6 +216,9 @@ let INFO = true ); + __context__.start = function (path) startWatching(expandPath(path)); + __context__.kill = function (path) killWatcher(expandPath(path)); + })(); // vim:sw=2 ts=2 et si fdm=marker: |