Changeset 37735 for lang

Show
Ignore:
Timestamp:
05/28/10 18:31:54 (4 years ago)
Author:
anekos
Message:

マッピング設定追加

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/vimperator-plugins/trunk/gmail-commando.js

    r37734 r37735  
    4040  <description>The handy commands for GMail</description> 
    4141  <description lang="ja">便利なGMail用コマンドー</description> 
    42   <version>1.0.0</version> 
     42  <version>1.1.0</version> 
    4343  <author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author> 
    4444  <license>new BSD License (Please read the source code comments of this plugin)</license> 
     
    161161  ); 
    162162 
     163 
     164  'translate'.split(/\s/).forEach(function (cmd) { 
     165    let gv = liberator.globalVariables['gmail_commando_map_' + cmd]; 
     166    if (!gv) 
     167      return; 
     168    mappings.addUserMap( 
     169      [modes.NORMAL], 
     170      gv.split(/\s+/), 
     171      cmd + ' - Gmail Commando', 
     172      function () { 
     173        Commands.translate(); 
     174      }, 
     175      { 
     176        matchingUrls: RegExp('https://mail\\.google\\.com/mail/*') 
     177      } 
     178    ); 
     179  }); 
     180 
     181  __context__.command  = Commands; 
     182 
    163183})(); 
    164184