diff options
| author | anekos | 2013-10-01 21:48:28 +0900 | 
|---|---|---|
| committer | anekos | 2013-10-01 21:48:28 +0900 | 
| commit | 3dc9d1f2b9ab1e892d9fd083ff5cce64c0d5abd1 (patch) | |
| tree | 0e41ff429e1f284cd5e6105f805e07c2ec104a35 | |
| parent | 489f31a8b3d67ad7682781bb5901c2209829c677 (diff) | |
| download | vimperator-plugins-3dc9d1f2b9ab1e892d9fd083ff5cce64c0d5abd1.tar.bz2 | |
自分を知ってほしい人のための改良
| -rw-r--r-- | twittperator/taioooooooooonoooooooooooooooooooooooooooooon.tw | 10 | 
1 files changed, 7 insertions, 3 deletions
| diff --git a/twittperator/taioooooooooonoooooooooooooooooooooooooooooon.tw b/twittperator/taioooooooooonoooooooooooooooooooooooooooooon.tw index ffa8e28..dcb203f 100644 --- a/twittperator/taioooooooooonoooooooooooooooooooooooooooooon.tw +++ b/twittperator/taioooooooooonoooooooooooooooooooooooooooooon.tw @@ -6,7 +6,7 @@  (function () { -  let tmpl = liberator.globalVariables.twittperator_plugin_taioooooooooonoooooooooooooooooooooooooooooon_template || '体温 %s'; +  let tmpl = liberator.globalVariables.twittperator_plugin_taioooooooooonoooooooooooooooooooooooooooooon_template || '体温 %s (%S)';    let taionds = [      ['焼死体', 666], @@ -37,7 +37,11 @@      ['taioooooooooonoooooooooooooooooooooooooooooon'],      'Description',      function (args) { -      plugins.twittperator.Twittperator.say(tmpl.replace(/%s/g, args.literalArg)); +      plugins.twittperator.Twittperator.say( +        tmpl.replace(/%s/g, args.literalArg).replace(/%S/g, function (it) { +          return whatAmI(parseFloat(args.literalArg.match(/\d{1,2}(\.\d)?/).toString())) +        }) +      );      },      {        literal: 0, @@ -50,7 +54,7 @@          }          liberator.__cs = cs; -        context.filters = [CompletionContext.Filter.textDescription]; // 説明(desc)もフィルタリング対象にする +        context.filters = [CompletionContext.Filter.textDescription];          context.completions = cs;        },      }, | 
