1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-28 00:55:48 +01:00

NEWS updates and whitespace fixes.

This commit is contained in:
Kris Maglione
2010-09-19 02:13:19 -04:00
parent a53edafac1
commit 72be646c5b
19 changed files with 57 additions and 50 deletions

View File

@@ -363,7 +363,7 @@ const Bookmarks = Module("bookmarks", {
completion.bookmark(context, args["-tags"]);
},
options: [tags,
{
{
names: ["-max", "-m"],
description: "The maximum number of items to list or open",
type: CommandOption.INT

View File

@@ -451,7 +451,7 @@ const CommandLine = Module("commandline", {
/**
* Displays the multi-line output of a command, preceded by the last
* executed ex command string.
*
*
* @param {XML} xml The output as an E4X XML object.
*/
commandOutput: function (xml) {
@@ -1532,14 +1532,14 @@ const CommandLine = Module("commandline", {
action: function (timespan, host) {
if (!host)
storage["history-search"].mutate("filter", function (item) !timespan.contains(item.timestamp));
storage["history-command"].mutate("filter", function (item)
storage["history-command"].mutate("filter", function (item)
!(timespan.contains(item.timestamp) && (!host || commands.hasDomain(item.value, host))));
}
});
// Delete history-like items from the commandline and messages on history purge
sanitizer.addItem("history", {
action: function (timespan, host) {
storage["history-command"].mutate("filter", function (item)
storage["history-command"].mutate("filter", function (item)
!(timespan.contains(item.timestamp) && (host ? commands.hasDomain(item.value, host) : item.privateData)));
commandline._messageHistory.filter(function (item) !timespan.contains(item.timestamp * 1000) ||
!item.domains && !item.privateData ||
@@ -1601,7 +1601,7 @@ const ItemList = Class("ItemList", {
if (this._container.collapsed)
this._div.style.minWidth = document.getElementById("dactyl-commandline").scrollWidth + "px";
this._minHeight = Math.max(this._minHeight,
this._minHeight = Math.max(this._minHeight,
this._win.scrollY + this._divNodes.completions.getBoundingClientRect().bottom);
if (this._container.collapsed)

View File

@@ -272,7 +272,7 @@ const Command = Class("Command", {
serialize: null,
/**
* @property {number} If this command takes another ex command as an
* argument, the index of that argument. Used in determining whether to
* argument, the index of that argument. Used in determining whether to
* purge the command from history when clearing private data.
*/
subCommand: null,
@@ -474,7 +474,7 @@ const Commands = Module("commands", {
},
/**
* Returns true if a command invocation contains a URL referring to the
* Returns true if a command invocation contains a URL referring to the
* domain 'host'.
*
* @param {string} command
@@ -494,7 +494,7 @@ const Commands = Module("commands", {
},
/**
* Returns true if a command invocation contains private data which should
* Returns true if a command invocation contains private data which should
* be cleared when purging private data.
*
* @param {string} command
@@ -1070,13 +1070,13 @@ const Commands = Module("commands", {
options: [
{ names: ["-bang"], description: "Command may be proceeded by a !" },
{ names: ["-count"], description: "Command may be preceeded by a count" },
{
names: ["-description"],
{
names: ["-description"],
description: "A user-visible description of the command",
type: CommandOption.STRING
}, {
}, {
// TODO: "E180: invalid complete value: " + arg
names: ["-complete"],
names: ["-complete"],
description: "The argument completion function",
completer: function (context) [[k, ""] for ([k, v] in Iterator(completeOptionMap))],
type: CommandOption.STRING,

View File

@@ -544,7 +544,7 @@ const Dactyl = Module("dactyl", {
body += <h2 xmlns={NS.uri} tag={context.INFO.@name + '-plugin'}>{context.INFO.@summary}</h2> +
context.INFO;
let help =
let help =
'<?xml version="1.0"?>\n' +
'<?xml-stylesheet type="text/xsl" href="chrome://dactyl/content/help.xsl"?>\n' +
'<!DOCTYPE document SYSTEM "chrome://dactyl/content/dactyl.dtd">\n' +
@@ -1419,7 +1419,7 @@ const Dactyl = Module("dactyl", {
///////////////////////////////////////////////////////////////////////////
if (typeof AddonManager == "undefined")
if (typeof AddonManager == "undefined")
modules.AddonManager = {
getAddonByID: function (id, callback) {
callback = callback || util.identity;
@@ -1518,7 +1518,7 @@ const Dactyl = Module("dactyl", {
};
///////////////////////////////////////////////////////////////////////////
function callResult(method) {
let args = Array.slice(arguments, 1);
return function (result) { result[method].apply(result, args) };

View File

@@ -78,7 +78,7 @@ const IO = Module("io", {
* @final
*/
File: Class("File", File, {
init: function init(path, checkCWD)
init: function init(path, checkCWD)
init.supercall(this, path, (arguments.length < 2 || checkCWD) && io.getCurrentDirectory())
}),
@@ -671,7 +671,7 @@ lookup:
// NOTE: Vim doesn't replace ! preceded by 2 or more backslashes and documents it - desirable?
// pass through a raw bang when escaped or substitute the last command
// This is an asinine and irritating feature when we have searchable
// command-line history. --Kris
if (options["banghist"])