aboutsummaryrefslogtreecommitdiffstats
path: root/peekpage.js
AgeCommit message (Collapse)Author
2009-01-09 * cosmetic changes.drry
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@28232 d0d07461-0603-4401-acd4-de1884942a52
2008-11-29引数無しの時は、現在のページを対象とするようにした。anekos
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@25367 d0d07461-0603-4401-acd4-de1884942a52
2008-11-29 * fix @name info.hogelog
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@25364 d0d07461-0603-4401-acd4-de1884942a52
2008-11-29 * add peekpage.js: peek page in commandline.hogelog
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@25363 d0d07461-0603-4401-acd4-de1884942a52
pan>1</version> <minVersion>2.0pre</minVersion> <maxVersion>2.1</maxVersion> <license>CC0</license> <detail><![CDATA[ == COMMANDS == appinfo [information]: echo and copy mozilla information ]]></detail> </VimperatorPlugin>; //}}} (function() { const appinfo = Cc["@mozilla.org/xre/app-info;1"].getService(Ci.nsIXULAppInfo); commands.add(['appinfo'], 'show application information', function(args) { if (args.length==1) { util.copyToClipboard(appinfo[args.string], true); } else { let descs = [[i,appinfo[i]] for(i in appinfo) if(i!="QueryInterface")]; let list = template.genericTable(descs, { title: ["Application Information", "Value"] }); commandline.echo(list, commandline.HL_INFOMSG); } },{ argCount: '?', completer: function(context, args) { context.title = ["Application Information", "Value"]; context.completions = [[i,appinfo[i]] for(i in appinfo) if(i!="QueryInterface")]; }, }); })(); // vim: fdm=marker sw=4 ts=4 et: