mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 13:48:00 +01:00
Whitespace fixes.
This commit is contained in:
@@ -32,7 +32,7 @@ const config = { //{{{
|
|||||||
hostApplication: "Songbird",
|
hostApplication: "Songbird",
|
||||||
//mainWindowID: "mainplayer",
|
//mainWindowID: "mainplayer",
|
||||||
/*** optional options, there are checked for existence and a fallback provided ***/
|
/*** optional options, there are checked for existence and a fallback provided ***/
|
||||||
features: ["bookmarks", "hints", "marks","history", "quickmarks", "session", "tabs", "windows", "player"],
|
features: ["bookmarks", "hints", "marks", "history", "quickmarks", "session", "tabs", "windows", "player"],
|
||||||
defaults: { guioptions: "rb" },
|
defaults: { guioptions: "rb" },
|
||||||
|
|
||||||
guioptions: {
|
guioptions: {
|
||||||
@@ -49,15 +49,15 @@ const config = { //{{{
|
|||||||
|
|
||||||
styleableChrome: "chrome://gonzo/content/xul/mainplayer.xul",
|
styleableChrome: "chrome://gonzo/content/xul/mainplayer.xul",
|
||||||
|
|
||||||
autocommands: [["BookmarkAdd", "Triggered after a page is bookmarked"],
|
autocommands: [["BookmarkAdd", "Triggered after a page is bookmarked"],
|
||||||
["ColorScheme", "Triggered after a color scheme has been loaded"],
|
["ColorScheme", "Triggered after a color scheme has been loaded"],
|
||||||
["DOMLoad", "Triggered when a page's DOM content has fully loaded"],
|
["DOMLoad", "Triggered when a page's DOM content has fully loaded"],
|
||||||
["DownloadPost", "Triggered when a download has completed"],
|
["DownloadPost", "Triggered when a download has completed"],
|
||||||
["Fullscreen", "Triggered when the browser's fullscreen state changes"],
|
["Fullscreen", "Triggered when the browser's fullscreen state changes"],
|
||||||
["LocationChange", "Triggered when changing tabs or when naviagtion to a new location"],
|
["LocationChange", "Triggered when changing tabs or when naviagtion to a new location"],
|
||||||
["PageLoadPre", "Triggered after a page load is initiated"],
|
["PageLoadPre", "Triggered after a page load is initiated"],
|
||||||
["PageLoad", "Triggered when a page gets (re)loaded/opened"],
|
["PageLoad", "Triggered when a page gets (re)loaded/opened"],
|
||||||
["ShellCmdPost", "Triggered after executing a shell command with :!cmd"],
|
["ShellCmdPost", "Triggered after executing a shell command with :!cmd"],
|
||||||
["XulmusEnter", "Triggered after Xulmus starts"],
|
["XulmusEnter", "Triggered after Xulmus starts"],
|
||||||
["XulmusLeavePre", "Triggered before exiting Xulmus, just before destroying each module"],
|
["XulmusLeavePre", "Triggered before exiting Xulmus, just before destroying each module"],
|
||||||
["XulmusLeave", "Triggered before exiting Xulmus"]],
|
["XulmusLeave", "Triggered before exiting Xulmus"]],
|
||||||
@@ -114,7 +114,7 @@ const config = { //{{{
|
|||||||
["selectionsource", "View selection source",
|
["selectionsource", "View selection source",
|
||||||
function () { buffer.viewSelectionSource(); }]
|
function () { buffer.viewSelectionSource(); }]
|
||||||
],
|
],
|
||||||
|
|
||||||
//TODO : Write intro.html and tutorial.html
|
//TODO : Write intro.html and tutorial.html
|
||||||
// they are sorted by relevance, not alphabetically
|
// they are sorted by relevance, not alphabetically
|
||||||
//helpFiles: [ "intro.html" ],
|
//helpFiles: [ "intro.html" ],
|
||||||
@@ -123,7 +123,7 @@ const config = { //{{{
|
|||||||
"pattern.html", "tabs.html", "hints.html", "map.html", "eval.html",
|
"pattern.html", "tabs.html", "hints.html", "map.html", "eval.html",
|
||||||
"marks.html", "repeat.html", "autocommands.html", "print.html",
|
"marks.html", "repeat.html", "autocommands.html", "print.html",
|
||||||
"gui.html", "styling.html", "message.html", "developer.html",
|
"gui.html", "styling.html", "message.html", "developer.html",
|
||||||
"various.html", "index.html", "version.html"
|
"various.html", "index.html", "version.html"
|
||||||
], */
|
], */
|
||||||
|
|
||||||
scripts: [
|
scripts: [
|
||||||
@@ -134,9 +134,9 @@ const config = { //{{{
|
|||||||
|
|
||||||
init: function ()
|
init: function ()
|
||||||
{
|
{
|
||||||
//Adding a mode for Player
|
//Adding a mode for Player
|
||||||
//modes.addMode("PLAYER"); // Player mode for songbird
|
//modes.addMode("PLAYER"); // Player mode for songbird
|
||||||
|
|
||||||
// var artistArray = getArtists();
|
// var artistArray = getArtists();
|
||||||
|
|
||||||
// TODO: support 'nrformats'? -> probably not worth it --mst
|
// TODO: support 'nrformats'? -> probably not worth it --mst
|
||||||
@@ -178,7 +178,7 @@ const config = { //{{{
|
|||||||
liberator.loadModule("marks", Marks);
|
liberator.loadModule("marks", Marks);
|
||||||
liberator.loadModule("quickmarks", QuickMarks);
|
liberator.loadModule("quickmarks", QuickMarks);
|
||||||
liberator.loadModule("hints", Hints);
|
liberator.loadModule("hints", Hints);
|
||||||
// Load the Player module
|
// Load the Player module
|
||||||
liberator.loadModule("player", Player);
|
liberator.loadModule("player", Player);
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
////////////////////// STYLES //////////////////////////////////////////////////
|
////////////////////// STYLES //////////////////////////////////////////////////
|
||||||
@@ -222,7 +222,7 @@ const config = { //{{{
|
|||||||
mappings.add([modes.NORMAL], ["t"],
|
mappings.add([modes.NORMAL], ["t"],
|
||||||
"Open one or more URLs in a new tab",
|
"Open one or more URLs in a new tab",
|
||||||
function () { commandline.open(":", "tabopen ", modes.EX); });
|
function () { commandline.open(":", "tabopen ", modes.EX); });
|
||||||
|
|
||||||
mappings.add([modes.NORMAL], ["T"],
|
mappings.add([modes.NORMAL], ["T"],
|
||||||
"Open one or more URLs in a new tab, based on current location",
|
"Open one or more URLs in a new tab, based on current location",
|
||||||
function () { commandline.open(":", "tabopen " + buffer.URL, modes.EX); });
|
function () { commandline.open(":", "tabopen " + buffer.URL, modes.EX); });
|
||||||
@@ -230,7 +230,7 @@ const config = { //{{{
|
|||||||
mappings.add([modes.NORMAL], ["T"],
|
mappings.add([modes.NORMAL], ["T"],
|
||||||
"Open one or more URLs in a new tab, based on current location",
|
"Open one or more URLs in a new tab, based on current location",
|
||||||
function () { commandline.open(":", "tabopen " + buffer.URL, modes.EX); });
|
function () { commandline.open(":", "tabopen " + buffer.URL, modes.EX); });
|
||||||
|
|
||||||
mappings.add([modes.NORMAL],
|
mappings.add([modes.NORMAL],
|
||||||
["<C-a>"], "Increment last number in URL",
|
["<C-a>"], "Increment last number in URL",
|
||||||
function (count) { incrementURL(count > 1 ? count : 1); },
|
function (count) { incrementURL(count > 1 ? count : 1); },
|
||||||
@@ -241,7 +241,6 @@ const config = { //{{{
|
|||||||
function (count) { incrementURL(-(count > 1 ? count : 1)); },
|
function (count) { incrementURL(-(count > 1 ? count : 1)); },
|
||||||
{ flags: Mappings.flags.COUNT });
|
{ flags: Mappings.flags.COUNT });
|
||||||
|
|
||||||
|
|
||||||
mappings.add([modes.NORMAL], ["~"],
|
mappings.add([modes.NORMAL], ["~"],
|
||||||
"Open home directory",
|
"Open home directory",
|
||||||
function () { liberator.open("~"); });
|
function () { liberator.open("~"); });
|
||||||
@@ -259,7 +258,6 @@ const config = { //{{{
|
|||||||
liberator.NEW_TAB : liberator.NEW_BACKGROUND_TAB);
|
liberator.NEW_TAB : liberator.NEW_BACKGROUND_TAB);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
mappings.add([modes.NORMAL], ["gu"],
|
mappings.add([modes.NORMAL], ["gu"],
|
||||||
"Go to parent directory",
|
"Go to parent directory",
|
||||||
function (count)
|
function (count)
|
||||||
|
|||||||
Reference in New Issue
Block a user