Changeset 24977 for lang/javascript/vimperator-plugins
- Timestamp:
- 11/27/08 00:07:02 (6 weeks ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/vimperator-plugins/trunk/ubiquity.js
r23278 r24977 72 72 ubiquityManager.execute(args); 73 73 }, { 74 completer: function( filter){75 return ubiquityManager.completer(filter);74 completer: function(context, arg, special){ 75 ubiquityManager.completer(context, arg.string) 76 76 } 77 77 }, … … 109 109 } 110 110 }, 111 completer: function( args){111 completer: function(context, args){ 112 112 var matches = args.match(/(\S+)(?:\s+(.+)$)?/); 113 113 var suggestions = []; … … 115 115 suggestions.push([cmd, this.commands[cmd].description]); 116 116 } 117 context.title = ['Command','Description']; 117 118 if (!matches){ 118 return [0, suggestions]; 119 context.items = suggestions; 120 return; 119 121 } 120 122 var [cmd, arg] = [matches[1], matches[2]]; … … 129 131 } 130 132 } else if (cmd){ 131 return [0, suggestions.filter(function(command){return command[0].indexOf(cmd) == 0;}) ]; 133 context.items = suggestions.filter(function(command){return command[0].indexOf(cmd) == 0;}); 134 return; 132 135 } 133 136 return [0, []];
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)