Skip to content

Commit

Permalink
a very uninteligent program for generating long keybindings combos (d…
Browse files Browse the repository at this point in the history
…oesnt take into account others that start with the ame letter. new one is planned)
  • Loading branch information
chee committed Jul 11, 2014
1 parent dc77753 commit 1afde09
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions compose.js
@@ -0,0 +1,13 @@
#!/usr/bin/env node
var $ = process.argv.slice(1);
keystrokes = $[1],
character = $[2],
start = "",
end = " );";

[].forEach.call(keystrokes, function (character) {
start += "\"" + character + "\" = { ";
end += " };"
});

console.log(start.slice(0, -2) + "( \"insertText:\", \"" + character +"\"" + end.slice(0, -3))

0 comments on commit 1afde09

Please sign in to comment.