mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 04:07:58 +01:00
add some missing fold markers
This commit is contained in:
@@ -310,7 +310,6 @@ liberator.Bookmarks = function () //{{{
|
|||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// also update bookmark cache, if we removed at least one bookmark
|
// also update bookmark cache, if we removed at least one bookmark
|
||||||
if (count.value > 0)
|
if (count.value > 0)
|
||||||
load();
|
load();
|
||||||
@@ -468,7 +467,6 @@ liberator.Bookmarks = function () //{{{
|
|||||||
extra = "<span style=\"color: gray;\"> (tags: <span style=\"color: blue;\">" + liberator.util.escapeHTML(tags) + "</span>)</span>";
|
extra = "<span style=\"color: gray;\"> (tags: <span style=\"color: blue;\">" + liberator.util.escapeHTML(tags) + "</span>)</span>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
list += "<tr><td>" + title + "</td><td style=\"width: 100%\"><a href=\"#\" class=\"hl-URL\">" + url + "</a>" + extra + "</td></tr>";
|
list += "<tr><td>" + title + "</td><td style=\"width: 100%\"><a href=\"#\" class=\"hl-URL\">" + url + "</a>" + extra + "</td></tr>";
|
||||||
}
|
}
|
||||||
list += "</table>";
|
list += "</table>";
|
||||||
|
|||||||
@@ -119,7 +119,6 @@ liberator.Buffer = function () //{{{
|
|||||||
return win;
|
return win;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// both values are given in percent, -1 means no change
|
// both values are given in percent, -1 means no change
|
||||||
function scrollToPercentiles(horizontal, vertical)
|
function scrollToPercentiles(horizontal, vertical)
|
||||||
{
|
{
|
||||||
@@ -139,8 +138,6 @@ liberator.Buffer = function () //{{{
|
|||||||
win.scrollTo(h, v);
|
win.scrollTo(h, v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////}}}
|
/////////////////////////////////////////////////////////////////////////////}}}
|
||||||
////////////////////// OPTIONS /////////////////////////////////////////////////
|
////////////////////// OPTIONS /////////////////////////////////////////////////
|
||||||
/////////////////////////////////////////////////////////////////////////////{{{
|
/////////////////////////////////////////////////////////////////////////////{{{
|
||||||
@@ -416,7 +413,6 @@ liberator.Buffer = function () //{{{
|
|||||||
"Print file information",
|
"Print file information",
|
||||||
function (count) { liberator.buffer.showPageInfo(true); });
|
function (count) { liberator.buffer.showPageInfo(true); });
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////}}}
|
/////////////////////////////////////////////////////////////////////////////}}}
|
||||||
////////////////////// COMMANDS ////////////////////////////////////////////////
|
////////////////////// COMMANDS ////////////////////////////////////////////////
|
||||||
/////////////////////////////////////////////////////////////////////////////{{{
|
/////////////////////////////////////////////////////////////////////////////{{{
|
||||||
@@ -1066,7 +1062,6 @@ liberator.Buffer = function () //{{{
|
|||||||
if (liberator.bookmarks.isBookmarked(this.URL))
|
if (liberator.bookmarks.isBookmarked(this.URL))
|
||||||
info.push("bookmarked");
|
info.push("bookmarked");
|
||||||
|
|
||||||
|
|
||||||
var pageInfoText = '"' + file + '" [' + info.join(", ") + "] " + title;
|
var pageInfoText = '"' + file + '" [' + info.join(", ") + "] " + title;
|
||||||
liberator.echo(pageInfoText, liberator.commandline.FORCE_SINGLELINE);
|
liberator.echo(pageInfoText, liberator.commandline.FORCE_SINGLELINE);
|
||||||
return;
|
return;
|
||||||
@@ -1090,7 +1085,7 @@ liberator.Buffer = function () //{{{
|
|||||||
|
|
||||||
pageGeneral.push(["Mime-Type", content.document.contentType]);
|
pageGeneral.push(["Mime-Type", content.document.contentType]);
|
||||||
pageGeneral.push(["Encoding", content.document.characterSet]);
|
pageGeneral.push(["Encoding", content.document.characterSet]);
|
||||||
pageGeneral.push(["Compatibility", content.document.compatMode == "BackCompat" ? "Quirks Mode" : "Full/Almost Standards Mode"]);
|
pageGeneral.push(["Compatibility", content.document.compatMode == "BackCompat" ? "Quirks Mode" : "Full/Almost Standards Mode"]);
|
||||||
if (lastModVerbose)
|
if (lastModVerbose)
|
||||||
pageGeneral.push(["Last Modified", lastModVerbose]);
|
pageGeneral.push(["Last Modified", lastModVerbose]);
|
||||||
|
|
||||||
@@ -1306,8 +1301,6 @@ liberator.Buffer = function () //{{{
|
|||||||
//}}}
|
//}}}
|
||||||
}; //}}}
|
}; //}}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
liberator.Marks = function () //{{{
|
liberator.Marks = function () //{{{
|
||||||
{
|
{
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
@@ -1434,7 +1427,6 @@ liberator.Marks = function () //{{{
|
|||||||
function (arg) { liberator.marks.jumpTo(arg); },
|
function (arg) { liberator.marks.jumpTo(arg); },
|
||||||
{ flags: liberator.Mappings.flags.ARGUMENT });
|
{ flags: liberator.Mappings.flags.ARGUMENT });
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////}}}
|
/////////////////////////////////////////////////////////////////////////////}}}
|
||||||
////////////////////// COMMANDS ////////////////////////////////////////////////
|
////////////////////// COMMANDS ////////////////////////////////////////////////
|
||||||
/////////////////////////////////////////////////////////////////////////////{{{
|
/////////////////////////////////////////////////////////////////////////////{{{
|
||||||
@@ -1679,5 +1671,4 @@ liberator.Marks = function () //{{{
|
|||||||
//}}}
|
//}}}
|
||||||
}; //}}}
|
}; //}}}
|
||||||
|
|
||||||
|
|
||||||
// vim: set fdm=marker sw=4 ts=4 et:
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
@@ -779,7 +779,6 @@ liberator.Editor = function () //{{{
|
|||||||
if (textBox)
|
if (textBox)
|
||||||
textBox.removeAttribute("readonly");
|
textBox.removeAttribute("readonly");
|
||||||
|
|
||||||
|
|
||||||
// if (v:shell_error != 0)
|
// if (v:shell_error != 0)
|
||||||
// {
|
// {
|
||||||
// tmpBg = "red";
|
// tmpBg = "red";
|
||||||
|
|||||||
@@ -1171,7 +1171,6 @@ liberator.Events = function () //{{{
|
|||||||
// return true;
|
// return true;
|
||||||
// } }}}
|
// } }}}
|
||||||
|
|
||||||
|
|
||||||
if (key != "<Esc>" && key != "<C-[>")
|
if (key != "<Esc>" && key != "<C-[>")
|
||||||
{
|
{
|
||||||
// custom mode...
|
// custom mode...
|
||||||
|
|||||||
@@ -616,7 +616,6 @@ liberator.Hints = function () //{{{
|
|||||||
},
|
},
|
||||||
{ flags: liberator.Mappings.flags.ARGUMENT });
|
{ flags: liberator.Mappings.flags.ARGUMENT });
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////}}}
|
/////////////////////////////////////////////////////////////////////////////}}}
|
||||||
////////////////////// PUBLIC SECTION //////////////////////////////////////////
|
////////////////////// PUBLIC SECTION //////////////////////////////////////////
|
||||||
/////////////////////////////////////////////////////////////////////////////{{{
|
/////////////////////////////////////////////////////////////////////////////{{{
|
||||||
|
|||||||
@@ -312,7 +312,6 @@ liberator.IO = function () //{{{
|
|||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
// return a nsILocalFile for path where you can call isDirectory(), etc. on
|
// return a nsILocalFile for path where you can call isDirectory(), etc. on
|
||||||
// caller must check with .exists() if the returned file really exists
|
// caller must check with .exists() if the returned file really exists
|
||||||
// also expands relative paths
|
// also expands relative paths
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ the provisions above, a recipient may use your version of this file under
|
|||||||
the terms of any one of the MPL, the GPL or the LGPL.
|
the terms of any one of the MPL, the GPL or the LGPL.
|
||||||
}}} ***** END LICENSE BLOCK *****/
|
}}} ***** END LICENSE BLOCK *****/
|
||||||
|
|
||||||
liberator.Mail = function ()
|
liberator.Mail = function () //{{{
|
||||||
{
|
{
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
////////////////////// PRIVATE SECTION /////////////////////////////////////////
|
////////////////////// PRIVATE SECTION /////////////////////////////////////////
|
||||||
@@ -367,8 +367,6 @@ liberator.Mail = function ()
|
|||||||
function (count) { liberator.mail.selectMessage(function(msg) { return gDBView.db.HasAttachments(msg.messageKey); }, true, true, true, count); },
|
function (count) { liberator.mail.selectMessage(function(msg) { return gDBView.db.HasAttachments(msg.messageKey); }, true, true, true, count); },
|
||||||
{ flags: liberator.Mappings.flags.COUNT });
|
{ flags: liberator.Mappings.flags.COUNT });
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// FOLDER SWITCHING
|
// FOLDER SWITCHING
|
||||||
liberator.mappings.add(modes, ["gi"],
|
liberator.mappings.add(modes, ["gi"],
|
||||||
"Go to inbox",
|
"Go to inbox",
|
||||||
@@ -414,7 +412,6 @@ liberator.Mail = function ()
|
|||||||
},
|
},
|
||||||
{ flags: liberator.Mappings.flags.COUNT });
|
{ flags: liberator.Mappings.flags.COUNT });
|
||||||
|
|
||||||
|
|
||||||
// THREADING
|
// THREADING
|
||||||
liberator.mappings.add(modes, ["za"],
|
liberator.mappings.add(modes, ["za"],
|
||||||
"Toggle thread collapsed/expanded",
|
"Toggle thread collapsed/expanded",
|
||||||
@@ -436,7 +433,6 @@ liberator.Mail = function ()
|
|||||||
"Collapse all threads",
|
"Collapse all threads",
|
||||||
function () { goDoCommand("cmd_collapseAllThreads"); });
|
function () { goDoCommand("cmd_collapseAllThreads"); });
|
||||||
|
|
||||||
|
|
||||||
liberator.mappings.add(modes, ["<C-i>"],
|
liberator.mappings.add(modes, ["<C-i>"],
|
||||||
"Go forward",
|
"Go forward",
|
||||||
function (count) { if (count < 1) count = 1; while (count--) GoNextMessage(nsMsgNavigationType.forward, true); },
|
function (count) { if (count < 1) count = 1; while (count--) GoNextMessage(nsMsgNavigationType.forward, true); },
|
||||||
@@ -457,7 +453,6 @@ liberator.Mail = function ()
|
|||||||
function (count) { if (count < 1) count = 1; while (count--) GoNextMessage(nsMsgNavigationType.lastMessage, false); },
|
function (count) { if (count < 1) count = 1; while (count--) GoNextMessage(nsMsgNavigationType.lastMessage, false); },
|
||||||
{ flags: liberator.Mappings.flags.COUNT });
|
{ flags: liberator.Mappings.flags.COUNT });
|
||||||
|
|
||||||
|
|
||||||
// tagging messages
|
// tagging messages
|
||||||
liberator.mappings.add(modes, ["tr"],
|
liberator.mappings.add(modes, ["tr"],
|
||||||
"Toggle selected messages read",
|
"Toggle selected messages read",
|
||||||
@@ -480,7 +475,6 @@ liberator.Mail = function ()
|
|||||||
MsgMarkThreadAsRead();
|
MsgMarkThreadAsRead();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
liberator.mappings.add(modes, ["ts"],
|
liberator.mappings.add(modes, ["ts"],
|
||||||
"Toggle selected messages starred",
|
"Toggle selected messages starred",
|
||||||
function ()
|
function ()
|
||||||
@@ -747,7 +741,6 @@ liberator.Mail = function ()
|
|||||||
if (folder.isServer)
|
if (folder.isServer)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
||||||
selectMessageCount = count;
|
selectMessageCount = count;
|
||||||
selectMessageKeys = [];
|
selectMessageKeys = [];
|
||||||
|
|
||||||
@@ -790,6 +783,6 @@ liberator.Mail = function ()
|
|||||||
};
|
};
|
||||||
|
|
||||||
//}}}
|
//}}}
|
||||||
};
|
}; //}}}
|
||||||
|
|
||||||
// vim: set fdm=marker sw=4 ts=4 et:
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
@@ -434,6 +434,7 @@ liberator.Mappings = function () //{{{
|
|||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
//}}}
|
||||||
}; //}}}
|
}; //}}}
|
||||||
|
|
||||||
// vim: set fdm=marker sw=4 ts=4 et:
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ the terms of any one of the MPL, the GPL or the LGPL.
|
|||||||
|
|
||||||
// Do NOT create instances of this class yourself, use the helper method
|
// Do NOT create instances of this class yourself, use the helper method
|
||||||
// liberator.options.add() instead
|
// liberator.options.add() instead
|
||||||
liberator.Option = function (names, description, type, defaultValue, getter, setter, validator, completer)
|
liberator.Option = function (names, description, type, defaultValue, getter, setter, validator, completer) //{{{
|
||||||
{
|
{
|
||||||
if (!names || !type)
|
if (!names || !type)
|
||||||
return null;
|
return null;
|
||||||
@@ -102,7 +102,6 @@ liberator.Option = function (names, description, type, defaultValue, getter, set
|
|||||||
|
|
||||||
}; //}}}
|
}; //}}}
|
||||||
|
|
||||||
|
|
||||||
liberator.Options = function () //{{{
|
liberator.Options = function () //{{{
|
||||||
{
|
{
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
@@ -746,6 +745,7 @@ liberator.Options = function () //{{{
|
|||||||
liberator.echoerr("E488: Trailing characters: " + name + "!");
|
liberator.echoerr("E488: Trailing characters: " + name + "!");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
//}}}
|
||||||
}; //}}}
|
}; //}}}
|
||||||
|
|
||||||
// vim: set fdm=marker sw=4 ts=4 et:
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
@@ -220,7 +220,6 @@ liberator.Tabs = function () //{{{
|
|||||||
liberator.tabs.select(index);
|
liberator.tabs.select(index);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////}}}
|
/////////////////////////////////////////////////////////////////////////////}}}
|
||||||
////////////////////// COMMANDS ////////////////////////////////////////////////
|
////////////////////// COMMANDS ////////////////////////////////////////////////
|
||||||
/////////////////////////////////////////////////////////////////////////////{{{
|
/////////////////////////////////////////////////////////////////////////////{{{
|
||||||
@@ -312,7 +311,6 @@ liberator.Tabs = function () //{{{
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
liberator.commands.add(["tabo[nly]"],
|
liberator.commands.add(["tabo[nly]"],
|
||||||
"Close all other tabs",
|
"Close all other tabs",
|
||||||
function () { liberator.tabs.keepOnly(getBrowser().mCurrentTab); });
|
function () { liberator.tabs.keepOnly(getBrowser().mCurrentTab); });
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ the provisions above, a recipient may use your version of this file under
|
|||||||
the terms of any one of the MPL, the GPL or the LGPL.
|
the terms of any one of the MPL, the GPL or the LGPL.
|
||||||
}}} ***** END LICENSE BLOCK *****/
|
}}} ***** END LICENSE BLOCK *****/
|
||||||
|
|
||||||
liberator.config = {
|
liberator.config = { //{{{
|
||||||
/*** required options, no checks done if they really exist, so be careful ***/
|
/*** required options, no checks done if they really exist, so be careful ***/
|
||||||
name: "Vimperator",
|
name: "Vimperator",
|
||||||
hostApplication: "Firefox",
|
hostApplication: "Firefox",
|
||||||
@@ -111,7 +111,7 @@ liberator.config = {
|
|||||||
liberator.open(matches[1] + newNum + matches[3]);
|
liberator.open(matches[1] + newNum + matches[3]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////}}}
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
////////////////////// MAPPINGS ////////////////////////////////////////////////
|
////////////////////// MAPPINGS ////////////////////////////////////////////////
|
||||||
/////////////////////////////////////////////////////////////////////////////{{{
|
/////////////////////////////////////////////////////////////////////////////{{{
|
||||||
|
|
||||||
@@ -328,6 +328,7 @@ liberator.config = {
|
|||||||
completer: function (filter) { return liberator.completion.url(filter); }
|
completer: function (filter) { return liberator.completion.url(filter); }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
//}}}
|
||||||
|
}; //}}}
|
||||||
|
|
||||||
// vim: set fdm=marker sw=4 ts=4 et:
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
Reference in New Issue
Block a user