mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 08:38:00 +01:00
made :dialogs generic, moved more commands to vim.js
This commit is contained in:
@@ -33,8 +33,57 @@ vimperator.config = {
|
||||
|
||||
/*** optional options, there are checked for existance and a fallback provided ***/
|
||||
features: ["bookmarks", "history", "marks", "quickmarks", "hints", "tabs", "windows"],
|
||||
dialogs: [],
|
||||
guioptions: { m: ["toolbar-menubar"], T: ["nav-bar"], b: ["PersonalToolbar"] },
|
||||
dialogs: [
|
||||
["about", "About Firefox",
|
||||
function() { openDialog("chrome://browser/content/aboutDialog.xul", "_blank", "chrome,dialog,modal,centerscreen"); }],
|
||||
["addbookmark", "Add bookmark for the current page",
|
||||
function() { PlacesCommandHook.bookmarkCurrentPage(true, PlacesUtils.bookmarksRootId); }],
|
||||
["addons", "Manage Add-ons",
|
||||
function() { BrowserOpenAddonsMgr(); }],
|
||||
["bookmarks", "List your bookmarks",
|
||||
function() { openDialog("chrome://browser/content/bookmarks/bookmarksPanel.xul", "Bookmarks", "dialog,centerscreen,width=600,height=600"); }],
|
||||
["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'); }],
|
||||
["history", "List your history",
|
||||
function() { openDialog("chrome://browser/content/history/history-panel.xul", "History", "dialog,centerscreen,width=600,height=600"); }],
|
||||
["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); }],
|
||||
["places", "Places Organizer: Manage your bookmarks and history",
|
||||
function() { PlacesCommandHook.showPlacesOrganizer(ORGANIZER_ROOT_BOOKMARKS); }],
|
||||
["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