From 09b20be2d185b3c1b4f3a4056bbbc5c3061e6e97 Mon Sep 17 00:00:00 2001 From: teramako Date: Thu, 17 Jan 2013 20:05:10 +0900 Subject: Dropped E4X for Vimperator 3.6+ --- _smooziee.js | 128 +++++++++++++++++++++++++++-------------------------------- 1 file changed, 59 insertions(+), 69 deletions(-) (limited to '_smooziee.js') diff --git a/_smooziee.js b/_smooziee.js index 36df3f5..ae4915c 100644 --- a/_smooziee.js +++ b/_smooziee.js @@ -8,84 +8,74 @@ // http://www.opensource.jp/licenses/mit-license.html // }}} // -// PLUGIN INFO: {{{ -var PLUGIN_INFO = - - smooziee - At j,k key scrolling to be smooth. - j,kキーでのスクロールをスムースに - 2.3pre - 2.3 - https://github.com/vimpr/vimperator-plugins/raw/master/_smooziee.js - snaka +// INFO: {{{ +var INFO = xml` + + snaka + MIT style license - 0.10.2 - || +

j,k key scrolling to be smoothly.

+

Global vriables

+

You can configure following variable as you like.

+
+
smooziee_scroll_amount
Scrolling amount(unit:px). Default value is 400px.
+
smooziee_interval
Scrolling interval(unit:ms). Default value is 20ms.
+
+

Example

+

Set scroll amount is 300px and interval is 10ms.

+ || - smooziee.smoothScrollBy(amount); - ||< - Example. - >|| + ]]> +

API

+ smooziee.smoothScrollBy(amount); +

Example

+
- - || + ]]> +
+ + snaka + + MIT style license +

普段のj,kキーのスクロールをLDRizeライクにスムースにします。

+

グローバル変数

+

以下の変数を.vimperatorrcなどで設定することで動作を調整することができます。

+
+
smooziee_scroll_amount
+
1回にスクロールする幅です(単位:ピクセル)。デフォルトは"400"です。
+
smooziee_interval
+
スクロール時のアニメーションのインターバルです(単位:ミリ秒)。 + "1"以上の値を設定します。デフォルトは"20"です。
+
+

設定例

+

スクロール量を300pxに、インターバルを10msに設定します。

+ || - smooziee.smoothScrollBy(amount); - ||< - amountにはスクロール量(ピクセル)を指定してください。正の値で下方向へ負の値で上方向へスクロールします。 - - Example. - >|| + ]]> +

API

+

他のキーにマップする場合やスクリプトから呼び出せるようAPIを用意してます。

+ smooziee.smoothScrollBy(amount); +

Example

+ -
; + ]]> +

ToDo

+ +`; // }}} let self = liberator.plugins.smooziee = (function(){ -- cgit v1.2.3