From c3707896e017814c267f9a21725a3aa485eda7b6 Mon Sep 17 00:00:00 2001 From: teramako Date: Sat, 12 Jan 2013 22:40:27 +0900 Subject: fix E4X for Vimperator 3.6+ --- exopen.js | 152 +++++++++++++++++++++++++++++++------------------------------- 1 file changed, 77 insertions(+), 75 deletions(-) (limited to 'exopen.js') diff --git a/exopen.js b/exopen.js index 90b6722..0e40adf 100644 --- a/exopen.js +++ b/exopen.js @@ -1,81 +1,83 @@ -var PLUGIN_INFO = - -{NAME} -Open URL from a template -テンプレートからURLをOpenします -2.0pre -2.0pre -https://github.com/vimpr/vimperator-plugins/raw/master/exopen.js -pekepekesamurai -0.10.1 - + pekepekesamurai + + + :exopen + :exopen template_name + +

+ template_name で設定されたURLを開きます。 +

+
+
+

Example

+ +

%TITLE%を現在開いているWebページのタイトルに展開してURLを開きます。

-=== Example === -:exopen http://www.google.co.jp/search?q=%TITLE%: - %TITLE%を現在開いているWebページのタイトルに展開してURLを開きます。 -:exopen [title] - テンプレートで設定されたURLを開きます。 + +

テンプレートで設定されたURLを開きます。

-== Keyword == -%TITLE%: - 現在のWebページのタイトル -%URL%: - 現在のWebページのURL -%SEL%: - 選択中の文字列 -%HTMLSEL%: - 選択中のHTMLソース +

Keyword

+
+
%TITLE%
現在のWebページのタイトル
+
%URL%
現在のWebページのURL
+
%SEL%
選択中の文字列
+
%HTMLSEL%
選択中のHTMLソース
+
-== .vimperatorrc == ->|| -javascript <
-
; +

.vimperatorrc exmaple

+ +
+
label
テンプレート名。コマンドの引数で指定してください。
+
value
OpenするURL
+
custom
+ 関数か配列で指定してください。 + 関数の場合、return された文字列をオープンします。 + 配列の場合、value で指定された文字列を置換します。(条件→Array[0]、置換文字列→Array[1]) +
+
description
補完時に表示する説明文。
+
newtab
新規タブで開く場合は true を指定してください。
+
escape
URLエンコードする場合、true を指定してください。
+
+`; liberator.plugins.exOpen = (function() { var global = liberator.globalVariables.exopen_templates; -- cgit v1.2.3