Changeset 28284
- Timestamp:
- 01/11/09 02:20:50 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/vimperator-plugins/trunk/exopen.js
r28275 r28284 164 164 registerCommand: function(){ 165 165 var self = this; 166 commands.addUserCommand(['exopen'], 'Open byextension url', 166 commands.addUserCommand(['exopen'], 'Open byextension url', 167 167 function(args) self.open(args.string, args.bang), { 168 168 completer: function(context, args) { 169 context.title = ['Template', ' Value'];169 context.title = ['Template', 'Description - Value']; 170 170 if (!context.filter) { 171 171 context.completions = self.completer; … … 187 187 var template = this.find(arg) || {value: arg}; 188 188 if (typeof template.custom == 'function') { 189 url = replacer(template.custom.call(this, template.value), template.escape);189 url = template.custom.call(this, template.value); 190 190 } else if (template.custom instanceof Array){ 191 191 url = replacer(template.value).replace(template.custom[0], template.custom[1], template.escape); … … 193 193 url = replacer(template.value, template.escape); 194 194 } 195 if (!url) return; 195 196 if (template.newtab) openTabOrSwitch(url); 196 197 else liberator.open(url);
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)