1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-08 11:05:48 +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](); config.dialogs[dialog][1]();
} }
catch (e) { catch (e) {
dactyl.echoerr("Error opening " + arg.quote() + ": " + e); dactyl.echoerr("Error opening " + dialog.quote() + ": " + (e.message || e));
} }
}, { }, {
argCount: "1", argCount: "1",

View File

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

View File

@@ -68,6 +68,8 @@ const Config = Module("config", ConfigBase, {
function () { window.BrowserPageInfo(); }], function () { window.BrowserPageInfo(); }],
pagesource: ["View page source", pagesource: ["View page source",
function () { window.BrowserViewSourceOfDocument(content.document); }], function () { window.BrowserViewSourceOfDocument(content.document); }],
passwords: ["Passwords dialog",
function () { window.openDialog("chrome://passwordmgr/content/passwordManager.xul"); }],
places: ["Places Organizer: Manage your bookmarks and history", places: ["Places Organizer: Manage your bookmarks and history",
function () { PlacesCommandHook.showPlacesOrganizer(ORGANIZER_ROOT_BOOKMARKS); }], function () { PlacesCommandHook.showPlacesOrganizer(ORGANIZER_ROOT_BOOKMARKS); }],
preferences: ["Show Firefox preferences dialog", preferences: ["Show Firefox preferences dialog",
@@ -85,7 +87,9 @@ const Config = Module("config", ConfigBase, {
searchengines: ["Manage installed search engines", searchengines: ["Manage installed search engines",
function () { window.openDialog("chrome://browser/content/search/engineManager.xul", "_blank", "chrome,dialog,modal,centerscreen"); }], function () { window.openDialog("chrome://browser/content/search/engineManager.xul", "_blank", "chrome,dialog,modal,centerscreen"); }],
selectionsource: ["View selection source", 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: [ features: [