aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xedit-vimperator-files.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/edit-vimperator-files.js b/edit-vimperator-files.js
index 9c90a24..9334453 100755
--- a/edit-vimperator-files.js
+++ b/edit-vimperator-files.js
@@ -38,7 +38,7 @@ let PLUGIN_INFO =
<name>Edit Vimperator File</name>
<description>Open vimperator files with text-editor.</description>
<description lang="ja">Vimperator 関連のファイルをエディタで開く</description>
- <version>1.0.0</version>
+ <version>1.1.0</version>
<author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author>
<license>new BSD License (Please read the source code comments of this plugin)</license>
<license lang="ja">修正BSDライセンス (ソースコードのコメントを参照してください)</license>
@@ -137,11 +137,15 @@ let INFO =
['edit'],
'Open vimperator file',
function (args) {
+ if (args['-autosource'])
+ plugins.auto_source.start(args.literalArg);
editor.editFileExternally(args.literalArg);
},
{
literal: 0,
- completer: function (context) completion.vimperatorFiles(context)
+ completer: function (context) completion.vimperatorFiles(context),
+ options: (plugins.auto_source ? [[['-autosource', '-a'], commands.OPTION_NOARG]] : [])
+
},
true
);