exopen

Description
Open URL from a templateテンプレートからURLをOpenします
Latest version
0.10.1
Author
pekepekesamurai
License

for 2.2
http://coderepos.org/share/browser/lang/javascript/vimperator-plugins/branches/2.2/exopen.js
for 2.1
http://coderepos.org/share/browser/lang/javascript/vimperator-plugins/branches/2.1/exopen.js
for 2.0
http://coderepos.org/share/browser/lang/javascript/vimperator-plugins/branches/2.0/exopen.js
for 1.2
not supported
for Nightly
http://coderepos.org/share/browser/lang/javascript/vimperator-plugins/trunk/exopen.js

Command

:exopen [template_name]
[template_name] で設定されたURLを開きます。

Example

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

Keyword

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

.vimperatorrc

javascript <<EOM
liberator.globalVariables.exopen_templates = [
  {
    label: 'vimpnightly',
    value: 'http://code.google.com/p/vimperator-labs/downloads/list?can=1&q=label:project-vimperator',
    description: 'open vimperator nightly xpi page',
    newtab: true
  }, {
    label: 'vimplab',
    value: 'http://www.vimperator.org/vimperator',
    description: 'open vimperator trac page',
    newtab: true
  }, {
    label: 'vimpscript',
    value: 'http://code.google.com/p/vimperator-labs/issues/list?can=2&q=label%3Aproject-vimperator+label%3Atype-plugin',
    description: 'open vimperator trac script page',
    newtab: true
  }, {
    label: 'coderepos',
    value: 'http://coderepos.org/share/browser/lang/javascript/vimperator-plugins/trunk/',
    description: 'open coderepos vimperator-plugin page',
    newtab: true
  }, {
    label: 'sldr',
    value: 'http://reader.livedoor.com/subscribe/%URL%'
  }
];
EOM
label
テンプレート名。コマンドの引数で指定してください。
value
OpenするURL
custom
関数か配列で指定してください。
関数の場合、return された文字列をオープンします。
配列の場合、value で指定された文字列を置換します。(条件→Array[0]、置換文字列→Array[1])
description
補完時に表示する説明文。
newtab
新規タブで開く場合は true を指定してください。
escape
URLエンコードする場合、true を指定してください。
back to index