mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-22 12:15:49 +01:00
Fix :map -count, macro playback, and odd quirk in :map completion.
--HG-- extra : rebase_source : 4e51ba8c43810e65244e9870521c8dbbc51b0a9d
This commit is contained in:
@@ -419,10 +419,12 @@ const Mappings = Module("mappings", {
|
||||
completer: function (context, args) {
|
||||
if (args.length == 1)
|
||||
return completion.userMapping(context, args, mapmodes);
|
||||
if (args["-javascript"])
|
||||
return completion.javascript(context);
|
||||
if (args["-ex"])
|
||||
return completion.ex(context);
|
||||
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",
|
||||
|
||||
Reference in New Issue
Block a user