diff options
author | anekos | 2010-05-17 11:58:15 +0000 |
---|---|---|
committer | anekos | 2010-05-17 11:58:15 +0000 |
commit | f2c43814d365a4c5d3b7d5f0ecd2c060ee984b7c (patch) | |
tree | 060dd0eaf77375f05ffd8c1dc44674ec18865184 /edit-vimperator-files.js | |
parent | 6394074f5bccdd504eed106c1414ddbf7577bd02 (diff) | |
download | vimperator-plugins-f2c43814d365a4c5d3b7d5f0ecd2c060ee984b7c.tar.bz2 |
ついでに :aso (auto_source.js) できるように
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37605 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'edit-vimperator-files.js')
-rwxr-xr-x | edit-vimperator-files.js | 8 |
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 ); |