1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 16:17:59 +01:00

Fix :map -count, macro playback, and odd quirk in :map completion.

--HG--
extra : rebase_source : 4e51ba8c43810e65244e9870521c8dbbc51b0a9d
This commit is contained in:
Kris Maglione
2010-10-22 04:44:00 -04:00
parent f78a7174e3
commit 9a3d312cb5
3 changed files with 14 additions and 4 deletions

View File

@@ -332,6 +332,9 @@ const Buffer = Module("buffer", {
Math.min.apply(Math,
buffer.allFrames().map(function (frame)
frame.document.pageIsFullyLoaded || 0)),
set loaded(val)
buffer.allFrames().forEach(function (frame)
frame.document.pageIsFullyLoaded = val),
/**
* @property {Object} The local state store for the currently selected

View File

@@ -419,10 +419,12 @@ const Mappings = Module("mappings", {
completer: function (context, args) {
if (args.length == 1)
return completion.userMapping(context, args, mapmodes);
if (args.length == 2) {
if (args["-javascript"])
return completion.javascript(context);
if (args["-ex"])
return completion.ex(context);
}
},
literal: 1,
options: [
@@ -430,6 +432,10 @@ const Mappings = Module("mappings", {
names: ["-builtin", "-b"],
description: "Execute this mapping as if there were no user-defined mappings"
},
{
names: ["-count", "-c"],
description: "Accept a count before the requisite key press"
},
{
names: ["-description", "-d"],
description: "A description of this mapping",

View File

@@ -113,6 +113,7 @@
<dt></dt> <dd></dd>
<dt>-builtin</dt> <dd>Execute this mapping as if there were no user-defined mappings (short name <em>-b</em>)</dd>
<dt>-count</dt> <dd>Accept a count before the requisite key press (short name <em>-c</em>)</dd>
<dt>-descripion</dt> <dd>A description of this mapping (short name <em>-d</em>)</dd>
<dt>-ex</dt> <dd>Execute <a>rhs</a> as an Ex command rather than keys (short name <em>-e</em>)</dd>
<dt>-javascript</dt> <dd>Execute <a>rhs</a> as JavaScript rather than keys (short names <em>-js</em>, <em>-j</em>)</dd>