1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-14 19:15:45 +01:00

Fix some command-opening key bindings.

This commit is contained in:
Kris Maglione
2011-01-29 16:57:34 -05:00
parent 9408d105ee
commit 313d2b223c
4 changed files with 17 additions and 7 deletions

View File

@@ -1321,7 +1321,10 @@ var Commands = Module("commands", {
args["-description"],
Command.bindMacro(args, "-ex",
function makeParams(args, modifiers) ({
args: this.argCount && args.string,
args: {
__proto__: args,
toString: function () this.string,
},
bang: this.bang && args.bang ? "!" : "",
count: this.count && args.count
})),
@@ -1330,7 +1333,7 @@ var Commands = Module("commands", {
bang: args["-bang"],
count: args["-count"],
completer: completerFunc,
literal: args["-count"] == "*" ? 0 : null,
literal: args["-literal"],
persist: !args["-nopersist"],
replacementText: args.literalArg,
sourcing: io.sourcing && update({}, io.sourcing)
@@ -1389,6 +1392,10 @@ var Commands = Module("commands", {
}, {
names: ["-javascript", "-js", "-j"],
description: "Execute the definition as JavaScript rather than Ex commands"
}, {
names: ["-literal", "-l"],
description: "Process the nth ignoring any quoting or meta characters",
type: CommandOption.INT
}, {
names: ["-nargs", "-a"],
description: "The allowed number of arguments",