Changeset 25706
- Timestamp:
- 12/02/08 21:07:57 (5 weeks ago)
- Location:
- lang/javascript/vimperator-plugins/trunk
- Files:
-
- 4 modified
-
feedSomeKeys_2.js (modified) (2 diffs)
-
toggler.js (modified) (2 diffs)
-
twitterView.js (modified) (2 diffs)
-
umihara.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/vimperator-plugins/trunk/feedSomeKeys_2.js
r25172 r25706 204 204 mappings.remove(map.modes[0],map.names[0]); 205 205 }); 206 }catch(e){ l og(map); }206 }catch(e){ liberator.log(map); } 207 207 origMaps.forEach(function(map){ 208 208 addUserMap(map); … … 258 258 keyCode = 0; 259 259 } 260 if (keys[i] == '<'){ 260 if (keys[i] == '<'){ 261 261 var matches = keys.substr(i + 1).match(/^((?:[ACMSacms]-)*)([^>]+)/); 262 262 if (matches) { -
lang/javascript/vimperator-plugins/trunk/toggler.js
r25649 r25706 7 7 * 8 8 * 何かしらの設定をクルクル変更したい人へ 9 * 9 * 10 10 * まず、最初に以下の例ように.vimperatorrcに定義する 11 11 js <<EOM … … 21 21 }; 22 22 EOM 23 * 23 * 24 24 * 次に 25 25 * :toggle go -
lang/javascript/vimperator-plugins/trunk/twitterView.js
r11326 r25706 1 1 // Vimperator plugin: 'Statusbar Twitter' 2 // Last Change: 0 9-May-2008. Jan20082 // Last Change: 02-Dec-2008 3 3 // License: Creative Commons 4 4 // Maintainer: Trapezoid <trapezoid.g@gmail.com> - http://unsigned.g.hatena.ne.jp/Trapezoid 5 5 // 6 // show Twitter on statusesbar script for Vimperator 0.6.*6 // show Twitter on statusesbar script for Vimperator 2.0pre 7 7 8 8 (function(){ … … 107 107 } 108 108 109 liberator.m appings.addUserMap([liberator.modes.NORMAL],[",r"],109 liberator.modules.mappings.add([liberator.modules.modes.NORMAL],[",r"], 110 110 "Reply to current user", 111 function (){ liberator. commandline.open(":","twitter @" + lastestStatus.user.screen_name + " ",liberator.modes.EX); });112 liberator.m appings.addUserMap([liberator.modes.NORMAL],[",f"],111 function (){ liberator.modules.commandline.open(":","twitter @" + lastestStatus.user.screen_name + " ",liberator.modules.modes.EX); }); 112 liberator.modules.mappings.add([liberator.modules.modes.NORMAL],[",f"], 113 113 "Favorite to current user", 114 114 function (){ favoriteStatus(lastestStatus.id); }); -
lang/javascript/vimperator-plugins/trunk/umihara.js
r24676 r25706 23 23 const re = /<td nowrap>(\d+:\d+)<\/td><td>([\d,]+\.[\d,]+)<\/td><td><b>([\d,]+\.[\d,]+)<\/b><\/td><\/tr><\/table><\/div>/; 24 24 25 const cl= [25 const ContryCodes = [ 26 26 ['USD', '\u30a2\u30e1\u30ea\u30ab\u30c9\u30eb'], 27 27 ['GBP', '\u30a4\u30ae\u30ea\u30b9 \u30dd\u30f3\u30c9'], … … 94 94 argCount: '+', 95 95 bang: true, 96 completer: function (context, arg , bang) {96 completer: function (context, args) { 97 97 let last = context.contextList.slice(-1)[0]; 98 context.title = ['Country Code' ];98 context.title = ['Country Code', 'Country Name']; 99 99 context.advance(last.offset - last.caret); 100 context.items = completion.filter(cl, last.filter); 101 /* 102 if (!(arg = commands.parseArgs(arg, extra.options, extra.argCount))) 103 return [0, []]; 104 let m = arg.string.match(/\s(\w+)$/); 105 return [(m ? m.index : arg.string.length) + 1, m ? completion.filter(cl, m[1]) : cl]; 106 */ 100 context.completions = ContryCodes; 107 101 } 108 102 }; … … 112 106 ['kawase'], 113 107 'Umihara Kawase Meow', 114 function (arg , clipboard) {115 let [value, from, to] = arg .arguments;108 function (args) { 109 let [value, from, to] = args; 116 110 value = eval(value); 117 kawase(value, clipboard, from, to);111 kawase(value, args.bang, from, to); 118 112 }, 119 113 extra,
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)