aboutsummaryrefslogtreecommitdiffstats
path: root/lo.js
diff options
context:
space:
mode:
Diffstat (limited to 'lo.js')
-rw-r--r--lo.js14
1 files changed, 10 insertions, 4 deletions
diff --git a/lo.js b/lo.js
index 9d450b0..45d4e3f 100644
--- a/lo.js
+++ b/lo.js
@@ -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'];