mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 00:54:12 +01:00
made :dialogs generic, moved more commands to vim.js
This commit is contained in:
@@ -36,8 +36,49 @@ vimperator.config = {
|
||||
get browserModes() { return [vimperator.modes.MESSAGE]; },
|
||||
get mainWidget() { return GetThreadTree(); }, // focusContent() focuses this widget
|
||||
mainWindowID: "messengerWindow", // used for :set titlestring
|
||||
dialogs: [],
|
||||
guioptions: { m: ["mail-toolbar-menubar2"], T: ["mail-bar2"], f: ["folderPaneBox", "folderpane_splitter"], F: ["folderPaneHeader"] },
|
||||
dialogs: [
|
||||
/*["about", "About Firefox",
|
||||
function() { openDialog("chrome://browser/content/aboutDialog.xul", "_blank", "chrome,dialog,modal,centerscreen"); }],
|
||||
["addons", "Manage Add-ons",
|
||||
function() { BrowserOpenAddonsMgr(); }],*/
|
||||
["checkupdates", "Check for updates",
|
||||
function() { checkForUpdates(); }],
|
||||
/*["cleardata", "Clear private data",
|
||||
function() { Cc[GLUE_CID].getService(Ci.nsIBrowserGlue).sanitize(window || null); }],*/
|
||||
["console", "JavaScript console",
|
||||
function() { toJavaScriptConsole(); }],
|
||||
/*["customizetoolbar", "Customize the Toolbar",
|
||||
function() { BrowserCustomizeToolbar(); }],*/
|
||||
["dominspector", "DOM Inspector",
|
||||
function() { inspectDOMDocument(content.document); }],
|
||||
["downloads", "Manage Downloads",
|
||||
function() { toOpenWindowByType('Download:Manager', 'chrome://mozapps/content/downloads/downloads.xul', 'chrome,dialog=no,resizable'); }],
|
||||
/*["import", "Import Preferences, Bookmarks, History, etc. from other browsers",
|
||||
function() { BrowserImport(); }],
|
||||
["openfile", "Open the file selector dialog",
|
||||
function() { BrowserOpenFileWindow(); }],
|
||||
["pageinfo", "Show information about the current page",
|
||||
function() { BrowserPageInfo(); }],
|
||||
["pagesource", "View page source",
|
||||
function() { BrowserViewSourceOfDocument(content.document); }],
|
||||
["preferences", "Show Firefox preferences dialog",
|
||||
function() { openPreferences(); }],
|
||||
["printpreview", "Preview the page before printing",
|
||||
function() { PrintUtils.printPreview(onEnterPrintPreview, onExitPrintPreview); }],*/
|
||||
["printsetup", "Setup the page size and orientation before printing",
|
||||
function() { PrintUtils.showPageSetup(); }],
|
||||
["print", "Show print dialog",
|
||||
function() { PrintUtils.print(); }],
|
||||
["saveframe", "Save frame to disk",
|
||||
function() { saveFrameDocument(); }],
|
||||
["savepage", "Save page to disk",
|
||||
function() { saveDocument(window.content.document); }],
|
||||
/*["searchengines", "Manage installed search engines",
|
||||
function() { openDialog("chrome://browser/content/search/engineManager.xul", "_blank", "chrome,dialog,modal,centerscreen"); }],
|
||||
["selectionsource", "View selection source",
|
||||
function() { vimperator.buffer.viewSelectionSource(); }]*/
|
||||
],
|
||||
|
||||
init: function()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user