mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 08:37:58 +01:00
:prefs needs to be application specific, so moving :prefs to vimperator and adding a new :prefs for muttator
This commit is contained in:
@@ -508,26 +508,6 @@ function Options() //{{{
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
commands.add(["pref[erences]", "prefs"],
|
|
||||||
"Show " + config.hostApplication + " preferences",
|
|
||||||
function (args)
|
|
||||||
{
|
|
||||||
if (args.bang) // open Firefox settings GUI dialog
|
|
||||||
{
|
|
||||||
liberator.open("about:config",
|
|
||||||
(options["newtab"] && options.get("newtab").has("all", "prefs"))
|
|
||||||
? liberator.NEW_TAB : liberator.CURRENT_TAB);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
window.openPreferences();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
argCount: "0",
|
|
||||||
bang: true
|
|
||||||
});
|
|
||||||
|
|
||||||
commands.add(["setl[ocal]"],
|
commands.add(["setl[ocal]"],
|
||||||
"Set local option",
|
"Set local option",
|
||||||
function (args)
|
function (args)
|
||||||
|
|||||||
@@ -219,6 +219,16 @@ const config = { //{{{
|
|||||||
liberator.loadModule("marks", Marks);
|
liberator.loadModule("marks", Marks);
|
||||||
liberator.loadModule("hints", Hints);
|
liberator.loadModule("hints", Hints);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
commands.add(["pref[erences]", "prefs"],
|
||||||
|
"Show " + config.hostApplication + " preferences",
|
||||||
|
function (args)
|
||||||
|
{
|
||||||
|
window.openOptionsDialog();
|
||||||
|
},
|
||||||
|
{
|
||||||
|
argCount: "0"
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}; //}}}
|
}; //}}}
|
||||||
|
|
||||||
|
|||||||
@@ -314,6 +314,26 @@ const config = { //{{{
|
|||||||
literal: 0
|
literal: 0
|
||||||
});
|
});
|
||||||
|
|
||||||
|
commands.add(["pref[erences]", "prefs"],
|
||||||
|
"Show " + config.hostApplication + " preferences",
|
||||||
|
function (args)
|
||||||
|
{
|
||||||
|
if (args.bang) // open Firefox settings GUI dialog
|
||||||
|
{
|
||||||
|
liberator.open("about:config",
|
||||||
|
(options["newtab"] && options.get("newtab").has("all", "prefs"))
|
||||||
|
? liberator.NEW_TAB : liberator.CURRENT_TAB);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
window.openPreferences();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
argCount: "0",
|
||||||
|
bang: true
|
||||||
|
});
|
||||||
|
|
||||||
commands.add(["redr[aw]"],
|
commands.add(["redr[aw]"],
|
||||||
"Redraw the screen",
|
"Redraw the screen",
|
||||||
function ()
|
function ()
|
||||||
|
|||||||
Reference in New Issue
Block a user