1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 09:27: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:
Daniel Bainton
2008-12-11 18:12:58 +02:00
parent e9cb763f37
commit 016770bf7d
3 changed files with 30 additions and 20 deletions

View File

@@ -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]"],
"Set local option",
function (args)

View File

@@ -219,6 +219,16 @@ const config = { //{{{
liberator.loadModule("marks", Marks);
liberator.loadModule("hints", Hints);
}
commands.add(["pref[erences]", "prefs"],
"Show " + config.hostApplication + " preferences",
function (args)
{
window.openOptionsDialog();
},
{
argCount: "0"
});
}
}; //}}}

View File

@@ -314,6 +314,26 @@ const config = { //{{{
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]"],
"Redraw the screen",
function ()