mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-20 18:15:51 +01:00
Use globbed modifiers for pass through keys.
This commit is contained in:
@@ -309,7 +309,8 @@ var Mappings = Module("mappings", {
|
||||
expandLeader: deprecated("expand", function expandLeader(keyString) keyString.replace(/<Leader>/i, options["mapleader"])),
|
||||
|
||||
prefixes: Class.memoize(function () {
|
||||
let list = Array.slice("CASM").map(function (s) s + "-");
|
||||
let list = Array.map("CASM", function (s) s + "-");
|
||||
|
||||
return iter(util.range(0, 1 << list.length)).map(function (mask)
|
||||
list.filter(function (p, i) mask & (1 << i)).join("")).toArray().concat("*-");
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user