diff options
author | anekos | 2010-06-21 16:28:14 +0000 |
---|---|---|
committer | anekos | 2010-06-21 16:28:14 +0000 |
commit | 55261cd431d7ec96e8cd76e49e47539f9a4b355c (patch) | |
tree | 3311c1fe3189a6a187f3b44ec48e2f2f725be965 /maine_coon.js | |
parent | 8b66fec79c28926404f2e7ec6864c36847949b51 (diff) | |
download | vimperator-plugins-55261cd431d7ec96e8cd76e49e47539f9a4b355c.tar.bz2 |
オプション値 u を追加
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37851 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'maine_coon.js')
-rw-r--r-- | maine_coon.js | 26 |
1 files changed, 21 insertions, 5 deletions
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 = <name lang="ja">メインクーン</name> <description>Make the screen larger</description> <description lang="ja">なるべくでかい画面で使えるように</description> - <version>2.4.3</version> + <version>2.5.0</version> <author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author> <minVersion>2.3</minVersion> <maxVersion>2.3</maxVersion> @@ -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) |