From f2c43814d365a4c5d3b7d5f0ecd2c060ee984b7c Mon Sep 17 00:00:00 2001
From: anekos
Date: Mon, 17 May 2010 11:58:15 +0000
Subject: ついでに :aso (auto_source.js) できるように
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37605 d0d07461-0603-4401-acd4-de1884942a52
---
edit-vimperator-files.js | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
(limited to 'edit-vimperator-files.js')
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 =
Edit Vimperator File
Open vimperator files with text-editor.
Vimperator 関連のファイルをエディタで開く
- 1.0.0
+ 1.1.0
anekos
new BSD License (Please read the source code comments of this plugin)
修正BSDライセンス (ソースコードのコメントを参照してください)
@@ -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
);
--
cgit v1.2.3