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

fix some minor, reintroduced, typos and add missing help line for <ESC> map

This commit is contained in:
Doug Kearns
2007-05-29 01:55:59 +00:00
parent a6dee9612a
commit 6feacb2603

View File

@@ -74,7 +74,7 @@ function Mappings()
// XXX: make these 2 arrays prviate // XXX: make these 2 arrays prviate
this.main = []; this.main = [];
this.user = []; this.user = [];
this.flags = { this.flags = {
MOTION: 1 << 0, MOTION: 1 << 0,
COUNT: 1 << 1, COUNT: 1 << 1,
@@ -93,18 +93,18 @@ function Mappings()
return true; return true;
} }
this.remove = function(map) this.remove = function(map)
{ {
var index; var index;
if (!map || !(index = this.user[map.mode].indexOf(map))) if (!map || !(index = this.user[map.mode].indexOf(map)))
return false; return false;
this.user[map.mode].splice(index, 1); this.user[map.mode].splice(index, 1);
return true; return true;
} }
this.get = function(mode, cmd) this.get = function(mode, cmd)
{ {
if (!mode || !cmd) if (!mode || !cmd)
@@ -191,7 +191,7 @@ function Mappings()
addDefaultMap(new Map(vimperator.mode.NORMAL, ["m"], set_location_mark, addDefaultMap(new Map(vimperator.mode.NORMAL, ["m"], set_location_mark,
{ {
short_help: "Set mark at the cursor position", usage: "m{a-zA-Z}", short_help: "Set mark at the cursor position", usage: "m{a-zA-Z}",
help: "Marks a-z are local to the buffer, whereas A-Z are valid between buffers", help: "Marks a-z are local to the buffer, whereas A-Z are valid between buffers.",
flags: this.flags.ARGUMENT flags: this.flags.ARGUMENT
} }
)); ));
@@ -203,7 +203,7 @@ function Mappings()
)); ));
addDefaultMap(new Map(vimperator.mode.NORMAL, ["O"], function(count) { vimperator.commandline.open(":", "open " + getCurrentLocation(), vimperator.modes.EX); }, addDefaultMap(new Map(vimperator.mode.NORMAL, ["O"], function(count) { vimperator.commandline.open(":", "open " + getCurrentLocation(), vimperator.modes.EX); },
{ {
short_help: "Open one ore more URLs in the current tab, based on current location", short_help: "Open one or more URLs in the current tab, based on current location",
help: "Works like <code class=\"mapping\">o</code>, but preselects current URL in the <code class=\"command\">:open</code> query." help: "Works like <code class=\"mapping\">o</code>, but preselects current URL in the <code class=\"command\">:open</code> query."
} }
)); ));
@@ -304,7 +304,8 @@ function Mappings()
addDefaultMap(new Map(vimperator.mode.NORMAL, ["ZZ"], function(count) { quit(true); }, addDefaultMap(new Map(vimperator.mode.NORMAL, ["ZZ"], function(count) { quit(true); },
{ {
short_help: "Quit and save the session", short_help: "Quit and save the session",
help: "Quit Vimperator, no matter how many tabs/windows are open. The session is stored.<br/>" + "Works like <code class=\"command\">:xall</code>." help: "Quit Vimperator, no matter how many tabs/windows are open. The session is stored.<br/>" +
"Works like <code class=\"command\">:xall</code>."
} }
)); ));
@@ -376,7 +377,7 @@ function Mappings()
addDefaultMap(new Map(vimperator.mode.NORMAL, ["<C-f>", "<C-d>", "<PageDown>", "<Space>"], function(count) { goDoCommand('cmd_scrollPageDown'); }, addDefaultMap(new Map(vimperator.mode.NORMAL, ["<C-f>", "<C-d>", "<PageDown>", "<Space>"], function(count) { goDoCommand('cmd_scrollPageDown'); },
{ {
short_help: "Scroll down a full page of the current document", short_help: "Scroll down a full page of the current document",
help: "No count support for now," help: "No count support for now."
} }
)); ));
@@ -384,14 +385,14 @@ function Mappings()
addDefaultMap(new Map(vimperator.mode.NORMAL, ["<C-o>"], function(count) { stepInHistory(count > 0 ? -1 * count : -1); }, addDefaultMap(new Map(vimperator.mode.NORMAL, ["<C-o>"], function(count) { stepInHistory(count > 0 ? -1 * count : -1); },
{ {
short_help: "Go to an older position in the jump list", short_help: "Go to an older position in the jump list",
help: "The jump list is just the browser history for now", help: "The jump list is just the browser history for now.",
flags: this.flags.COUNT flags: this.flags.COUNT
} }
)); ));
addDefaultMap(new Map(vimperator.mode.NORMAL, ["<C-i>"], function(count) { stepInHistory(count > 0 ? count : 1); }, addDefaultMap(new Map(vimperator.mode.NORMAL, ["<C-i>"], function(count) { stepInHistory(count > 0 ? count : 1); },
{ {
short_help: "Go to a newer position in the jump list", short_help: "Go to a newer position in the jump list",
help: "The jump list is just the browser history for now", help: "The jump list is just the browser history for now.",
flags: this.flags.COUNT flags: this.flags.COUNT
} }
)); ));
@@ -525,6 +526,7 @@ function Mappings()
{ {
short_help: "Cancel any operation", short_help: "Cancel any operation",
help: "Exits any command line or hint mode and returns to browser mode.<br/>" help: "Exits any command line or hint mode and returns to browser mode.<br/>"
"Also focuses the web page, in case a form field has focus and eats our key presses.",
} }
)); ));