From 43cbe2d847ad6762d9f2831852f1e4eaefc2e80c Mon Sep 17 00:00:00 2001
From: anekos
Date: Wed, 7 Jan 2009 10:18:59 +0000
Subject: 再起動後に、最大化状態で復帰できるように修正
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@28098 d0d07461-0603-4401-acd4-de1884942a52
---
maine_coon.js | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
(limited to 'maine_coon.js')
diff --git a/maine_coon.js b/maine_coon.js
index 23f7bf5..5286c99 100644
--- a/maine_coon.js
+++ b/maine_coon.js
@@ -38,7 +38,7 @@ let PLUGIN_INFO =
メインクーン
Makes more large screen
なるべくでかい画面で使えるように
- 2.0
+ 2.0.1
anekos
2.0pre
2.0pre
@@ -55,6 +55,9 @@ let PLUGIN_INFO =
Hide automatically command-line
f:
Fullscreeen
+ >||
+ :set mainecoon=ac
+ ||<
== Global Variables ==
maine_coon_targets:
Other elements IDs that you want to hide.
@@ -79,6 +82,9 @@ let PLUGIN_INFO =
f:
フルスクリーン
"c" と "f" の併用は意味がありません。
+ >||
+ :set mainecoon=ac
+ ||<
== Global Variables ==
maine_coon_targets:
フルスクリーン時にの非表示にしたい要素のIDを空白区切りで指定します。
@@ -136,7 +142,8 @@ let tagetIDs = (liberator.globalVariables.maine_coon_targets || '').split(/\s+/)
width: width,
height: height,
adjustHeight: adjustHeight,
- adjustWidth: adjustWidth
+ adjustWidth: adjustWidth,
+ state: window.windowState
};
}
@@ -164,6 +171,8 @@ let tagetIDs = (liberator.globalVariables.maine_coon_targets || '').split(/\s+/)
window.outerWidth = windowInfo.width;
window.outerHeight = windowInfo.height + windowInfo.adjustHeight;
});
+ if (windowInfo.state == window.STATE_MAXIMIZED)
+ delay(function () window.maximize());
refreshWindow();
}
@@ -230,9 +239,7 @@ let tagetIDs = (liberator.globalVariables.maine_coon_targets || '').split(/\s+/)
autocommands.add(
'VimperatorEnter',
/.*/,
- function () {
- delay(function () options.get('mainecoon').set(def), 1000)
- }
+ function () delay(function () options.get('mainecoon').set(def), 1000)
);
}
--
cgit v1.2.3