1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-07 18:14:11 +01:00

Rename -liberator command-line option to -[config-name].

This commit is contained in:
Doug Kearns
2009-08-19 02:34:56 +10:00
parent cc187d8372
commit b0f4af5e55
12 changed files with 40 additions and 155 deletions

View File

@@ -5,10 +5,13 @@ ARCHITECTURE:
- modular help system
- I made a quick attempt at parameterizing it using attributes but it
breaks Asciidoc formatting in certain unpredictable (to me at least)
contexts. *sigh* --djk
contexts. --djk
- move as much as possible to common/*
- decide on how to document Arrays in our jsdoc(ish) documentation. Is there
even a documentation tool that can parse our source sensibly?
- update build system to generate config specific components from templates in
common/components/* and copy others -
a739cdeab8f1648fd771f17d8a4885533032376f attempt at linking didn't work.
BUGS:
- add window resize support to hints

View File

@@ -7,15 +7,15 @@ function CommandLineHandler()
CommandLineHandler.prototype = {
classDescription: "Liberator Command-line Handler",
classDescription: "Vimperator Command-line Handler",
classID: Components.ID("{16dc34f7-6d22-4aa4-a67f-2921fb5dcb69}"),
contractID: "@mozilla.org/commandlinehandler/general-startup;1?type=liberator",
contractID: "@mozilla.org/commandlinehandler/general-startup;1?type=vimperator",
_xpcom_categories: [{
category: "command-line-handler",
entry: "m-liberator"
entry: "m-vimperator"
}],
QueryInterface: XPCOMUtils.generateQI([Components.interfaces.nsICommandLineHandler]),
@@ -25,11 +25,11 @@ CommandLineHandler.prototype = {
// TODO: handle remote launches differently?
try
{
this.optionValue = commandLine.handleFlagWithParam("liberator", false);
this.optionValue = commandLine.handleFlagWithParam("vimperator", false);
}
catch (e)
{
//"liberator: option -liberator requires an argument"
//"vimperator: option -vimperator requires an argument"
}
}
};

View File

@@ -158,6 +158,9 @@ const config = { //{{{
init: function ()
{
services.add("commandLineHandler", "@mozilla.org/commandlinehandler/general-startup;1?type=vimperator",
Ci.nsICommandLineHandler);
// load Vimperator specific modules
// FIXME: Why aren't these listed in config.scripts?
// FIXME: Why isn't this automatic? -> how would one know which classes to load where? --mst

View File

@@ -2,12 +2,12 @@ heading::Starting{nbsp}Vimperator[starting]
|startup-options| +
Command-line options can be passed to Vimperator via the -liberator Firefox
Command-line options can be passed to Vimperator via the -vimperator Firefox
option. These are passed as single string argument.
E.g firefox -liberator "$$++cmd='set exrc' +u='tempRcFile' ++noplugin$$"
E.g firefox -vimperator "$$++cmd 'set exrc' +u 'tempRcFile' ++noplugin$$"
|+c| +
||+c={command}||
||+c {command}||
________________________________________________________________________________
Execute a single Ex command after all initialization has been performed. See
[j]initialization[j].
@@ -17,7 +17,7 @@ ________________________________________________________________________________
|$$++cmd$$| +
||$$++cmd={command}$$||
||$$++cmd {command}$$||
________________________________________________________________________________
Execute a single Ex command before any initialization has been performed. See
[j]initialization[j].
@@ -27,7 +27,7 @@ ________________________________________________________________________________
|+u| +
||+u={rcfile}||
||+u {rcfile}||
________________________________________________________________________________
The file {rcfile} is used for user initialization commands. If {rcfile} is
"NORC" then no startup initialization is performed except for the loading of