diff options
author | anekos | 2013-04-06 18:22:02 +0900 |
---|---|---|
committer | anekos | 2013-04-06 18:22:02 +0900 |
commit | 37f3071e579fbe36deaf17c2513a6619707eab45 (patch) | |
tree | 90b6134fff349ec45ebaf48b4a25e5b31c92fba8 /lo.js | |
parent | 862198772d1b50822d888bae4d13d3ee8aa69740 (diff) | |
parent | 443904bbc0d49e6da3c80319e063e0c8bb258c4c (diff) | |
download | vimperator-plugins-37f3071e579fbe36deaf17c2513a6619707eab45.tar.bz2 |
Merge branch 'master' into 3.6
for master updates
Conflicts:
lo.js
twittperator.js
Diffstat (limited to 'lo.js')
-rw-r--r-- | lo.js | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -39,7 +39,7 @@ let PLUGIN_INFO = xml` <name lang="ja">Link Opener</name> <description>Link Opener</description> <description lang="ja">リンクを開く</description> - <version>2.3.2</version> + <version>2.4.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> @@ -53,7 +53,7 @@ let PLUGIN_INFO = xml` // }}} // INFO {{{ let INFO = xml` - <plugin name="link-opener" version="2.3.2" + <plugin name="link-opener" version="2.4.0" href="http://github.com/vimpr/vimperator-plugins/blob/master/lo.js" summary="Link Opener" lang="en-US" @@ -102,7 +102,7 @@ let INFO = xml` </description> </item> </plugin> - <plugin name="link-opener" version="2.3.2" + <plugin name="link-opener" version="2.4.0" href="http://github.com/vimpr/vimperator-plugins/blob/master/lo.js" summary="Link Opener" lang="ja" @@ -247,6 +247,11 @@ let INFO = xml` if (!links.length) return; + if (args['-copy']) { + util.copyToClipboard(links.map(function (it) it.href).join("\n")); + return; + } + liberator.open(links[0].href, where); if (links.length <= 1) @@ -270,7 +275,8 @@ let INFO = xml` options: [ [['-interval', '-i'], commands.OPTION_INT], [['-where', '-w'], commands.OPTION_STRING, null, WHERE_COMPLETIONS], - [['-include-current', '-I'], commands.OPTION_NOARG] + [['-include-current', '-I'], commands.OPTION_NOARG], + [['-copy', '-c'], commands.OPTION_NOARG] ], completer: function (context, args) { context.title = ['URL', 'Text Content']; |