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:
@@ -332,6 +332,9 @@ const Buffer = Module("buffer", {
|
|||||||
Math.min.apply(Math,
|
Math.min.apply(Math,
|
||||||
buffer.allFrames().map(function (frame)
|
buffer.allFrames().map(function (frame)
|
||||||
frame.document.pageIsFullyLoaded || 0)),
|
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
|
* @property {Object} The local state store for the currently selected
|
||||||
|
|||||||
@@ -419,10 +419,12 @@ const Mappings = Module("mappings", {
|
|||||||
completer: function (context, args) {
|
completer: function (context, args) {
|
||||||
if (args.length == 1)
|
if (args.length == 1)
|
||||||
return completion.userMapping(context, args, mapmodes);
|
return completion.userMapping(context, args, mapmodes);
|
||||||
if (args["-javascript"])
|
if (args.length == 2) {
|
||||||
return completion.javascript(context);
|
if (args["-javascript"])
|
||||||
if (args["-ex"])
|
return completion.javascript(context);
|
||||||
return completion.ex(context);
|
if (args["-ex"])
|
||||||
|
return completion.ex(context);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
literal: 1,
|
literal: 1,
|
||||||
options: [
|
options: [
|
||||||
@@ -430,6 +432,10 @@ const Mappings = Module("mappings", {
|
|||||||
names: ["-builtin", "-b"],
|
names: ["-builtin", "-b"],
|
||||||
description: "Execute this mapping as if there were no user-defined mappings"
|
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"],
|
names: ["-description", "-d"],
|
||||||
description: "A description of this mapping",
|
description: "A description of this mapping",
|
||||||
|
|||||||
@@ -113,6 +113,7 @@
|
|||||||
<dt></dt> <dd></dd>
|
<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>-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>-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>-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>
|
<dt>-javascript</dt> <dd>Execute <a>rhs</a> as JavaScript rather than keys (short names <em>-js</em>, <em>-j</em>)</dd>
|
||||||
|
|||||||
Reference in New Issue
Block a user