1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 02:22:26 +01:00

Add passwords and venkman dialogs.

This commit is contained in:
Kris Maglione
2010-09-29 13:31:26 -04:00
parent f7b99e9272
commit 7f973be500
3 changed files with 7 additions and 2 deletions

View File

@@ -1330,7 +1330,7 @@ const Dactyl = Module("dactyl", {
config.dialogs[dialog][1]();
}
catch (e) {
dactyl.echoerr("Error opening " + arg.quote() + ": " + e);
dactyl.echoerr("Error opening " + dialog.quote() + ": " + (e.message || e));
}
}, {
argCount: "1",

View File

@@ -60,6 +60,7 @@
* Added -javascript option to :abbrev and :map.
* Added several new options to :map.
* Added -agent flag to :style
* Added "passwords" and "venkman" dialogs to :dialog
* Removed the :source line at the end of files generated by
:mkpentadactylrc.
* gf now toggles between source and content view.

View File

@@ -68,6 +68,8 @@ const Config = Module("config", ConfigBase, {
function () { window.BrowserPageInfo(); }],
pagesource: ["View page source",
function () { window.BrowserViewSourceOfDocument(content.document); }],
passwords: ["Passwords dialog",
function () { window.openDialog("chrome://passwordmgr/content/passwordManager.xul"); }],
places: ["Places Organizer: Manage your bookmarks and history",
function () { PlacesCommandHook.showPlacesOrganizer(ORGANIZER_ROOT_BOOKMARKS); }],
preferences: ["Show Firefox preferences dialog",
@@ -85,7 +87,9 @@ const Config = Module("config", ConfigBase, {
searchengines: ["Manage installed search engines",
function () { window.openDialog("chrome://browser/content/search/engineManager.xul", "_blank", "chrome,dialog,modal,centerscreen"); }],
selectionsource: ["View selection source",
function () { buffer.viewSelectionSource(); }]
function () { buffer.viewSelectionSource(); }],
venkman: ["The JavaScript debugger",
function () { dactyl.assert("start_venkman" in window, "Venkman is not installed"); start_venkman() }]
},
features: [