From 55261cd431d7ec96e8cd76e49e47539f9a4b355c Mon Sep 17 00:00:00 2001
From: anekos
Date: Mon, 21 Jun 2010 16:28:14 +0000
Subject: オプション値 u を追加
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37851 d0d07461-0603-4401-acd4-de1884942a52
---
maine_coon.js | 26 +++++++++++++++++++++-----
1 file changed, 21 insertions(+), 5 deletions(-)
(limited to 'maine_coon.js')
diff --git a/maine_coon.js b/maine_coon.js
index 1863271..c6a53c5 100644
--- a/maine_coon.js
+++ b/maine_coon.js
@@ -38,7 +38,7 @@ let PLUGIN_INFO =
メインクーン
Make the screen larger
なるべくでかい画面で使えるように
- 2.4.3
+ 2.5.0
anekos
2.3
2.3
@@ -65,10 +65,12 @@ let PLUGIN_INFO =
(e.g. "Yanked http://..." "-- CARET --")
l:
Large mode (Hide status line)
+ u:
+ Displays the message of current page URL when page is loaded.
>||
:set mainecoon=ac
||<
- The default value of this option is "am".
+ The default value of this option is "amu".
=== note ===
The C and c options probably are supported on some OSs only.
== Global Variables ==
@@ -116,11 +118,13 @@ let PLUGIN_INFO =
("Yanked http://..." "-- CARET --" など)
l:
ラージモード (Hide status line)
+ u:
+ ページが読み込まれたときにURLをポップアップ表示する。
"c" と "f" の併用は意味がありません。
>||
:set mainecoon=ac
||<
- デフォルト値は "am"
+ デフォルト値は "amu"
=== 備考 ===
C c オプションはいくつかの OS でのみ有効です。多分。
== Global Variables ==
@@ -331,6 +335,7 @@ let elemStyle =
let useEcho = false;
let autoHideCommandLine = false;
+ let displayURL = true;
let inputting = false;
let windowInfo = {};
@@ -339,8 +344,8 @@ let elemStyle =
let d = liberator.globalVariables.maine_coon_default;
let def = !nothing(d) ? d :
- nothing(a) ? 'am' :
- s2b(a) ? 'am' :
+ nothing(a) ? 'amu' :
+ s2b(a) ? 'amu' :
'm';
autocommands.add(
@@ -408,6 +413,15 @@ let elemStyle =
U.around(commandline._callbacks.cancel, modes.PROMPT, callback);
}
+ autocommands.add(
+ 'DOMLoad',
+ /.*/,
+ function (args) {
+ if (displayURL)
+ echo(args.url);
+ }
+ );
+
options.add(
['mainecoon'],
'Make big screen like a Maine Coon',
@@ -436,6 +450,7 @@ let elemStyle =
setAutoHideCommandLine(has('a'));
useEcho = has('m');
+ displayURL = has('u');
return value;
},
@@ -448,6 +463,7 @@ let elemStyle =
['C', 'Hide caption bar (maximize)'],
['m', 'Displays the message to command-line'],
['l', 'Large mode. Hide status-line'],
+ ['u', 'Displays the message of current page URL when page is loaded.'],
];
},
validater: function (value) /^[cfa]*$/.test(value)
--
cgit v1.2.3