Skip to content

Commit

Permalink
fix: full working windows config as default (#10)
Browse files Browse the repository at this point in the history
* fix: full working windows config as default

altgr and option are not available on all windows machines use ctrl as the default and shift as modifier

* ci: remove ridiculous line length rules
  • Loading branch information
twhiston authored Jul 3, 2023
1 parent 6131fc4 commit 265c8bb
Show file tree
Hide file tree
Showing 2 changed files with 150 additions and 24 deletions.
16 changes: 15 additions & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
module.exports = {extends: ['@commitlint/config-conventional']}
module.exports = {
extends: [
'@commitlint/config-conventional'
],
rules: {
'body-max-length': [0, 'always'],
'body-max-line-length': [0, 'always'],
'footer-max-length': [0, 'always'],
'footer-max-line-length': [0, 'always'],
'header-max-length': [0, 'always'],
'scope-max-length': [0, 'always'],
'subject-max-length': [0, 'always'],
'type-max-length': [0, 'always'],
},
};
158 changes: 135 additions & 23 deletions misc/replkeys.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,38 @@
},
"bindings": [
{
"id": "execute",
"id": "execute-opt+enter-mac",
"asciiCode": 2044,
"functions": [
"return ['run']"
]
},
{
"id": "execute-line",
"id": "execute-ctrl+enter-win",
"asciiCode": 4348,
"functions": [
"return ['run']"
]
},
{
"id": "execute_line+ctrl+opt+enter-mac",
"asciiCode": 6140,
"functions": [
"return ['run_line']"
]
},
{
"id": "alphahandler",
"asciiCode": 127,
"id": "execute_line+shift+ctrl+enter-win",
"asciiCode": 4860,
"functions": [
"ctx.addChar(k)"
"return ['run_line']"
]
},
{
"id": "ephemeral_mode-alt-g",
"asciiCode": 169,
"id": "alphahandler",
"asciiCode": 127,
"functions": [
"return ['ephemeral_mode']"
"ctx.addChar(k)"
]
},
{
Expand Down Expand Up @@ -94,54 +101,103 @@
]
},
{
"id": "comment-alt-/",
"id": "comment-opt+/-mac",
"asciiCode": 247,
"functions": [
"ctx.commentLine()"
]
},
{
"id": "clear-alt-z",
"id": "comment-ctrl+/-win",
"asciiCode": 4399,
"functions": [
"ctx.commentLine()"
]
},
{
"id": "clear-opt+z-mac",
"asciiCode": 937,
"functions": [
"ctx.clear()"
]
},
{
"id": "cutLine-alt-x",
"id": "clear-ctrl+z-win",
"asciiCode": 4474,
"functions": [
"ctx.clear()"
]
},
{
"id": "cutLine-opt+x-mac",
"asciiCode": 8776,
"functions": [
"ctx.tb.pasteBinCopyLine(ctx.c.line());ctx.deleteLine();return ['output_paste_bin']"
]
},
{
"id": "copyLine-alt-c",
"id": "cutLine-ctrl+x-win",
"asciiCode": 4472,
"functions": [
"ctx.tb.pasteBinCopyLine(ctx.c.line());ctx.deleteLine();return ['output_paste_bin']"
]
},
{
"id": "copyLine-opt+c-mac",
"asciiCode": 231,
"functions": [
"ctx.tb.pasteBinCopyLine(ctx.c.line());return ['output_paste_bin']"
]
},
{
"id": "copyAll-alt-k",
"id": "copyLine-ctrl+c-win",
"asciiCode": 4451,
"functions": [
"ctx.tb.pasteBinCopyLine(ctx.c.line());return ['output_paste_bin']"
]
},
{
"id": "copyAll-opt+k-mac",
"asciiCode": 730,
"functions": [
"ctx.tb.pasteBinCopyAll();return ['output_paste_bin']"
]
},
{
"id": "paste-alt-v",
"id": "copyAll-ctrl+k-win",
"asciiCode": 4459,
"functions": [
"ctx.tb.pasteBinCopyAll();return ['output_paste_bin']"
]
},
{
"id": "paste-opt+v-mac",
"asciiCode": 8730,
"functions": [
"var pb = ctx.tb.pasteBinGet(); for(var i = 0; i < pb.length; i++){for (var a = 0; a < pb[i].length; a++) {var char = pb[i].charCodeAt(a); ctx.keyPress(char)}};"
]
},
{
"id": "replaceLine-alt-p",
"id": "paste-ctrl+v-win",
"asciiCode": 4470,
"functions": [
"var pb = ctx.tb.pasteBinGet(); for(var i = 0; i < pb.length; i++){for (var a = 0; a < pb[i].length; a++) {var char = pb[i].charCodeAt(a); ctx.keyPress(char)}};"
]
},
{
"id": "replaceLine-opt+p-mac",
"asciiCode": 960,
"functions": [
"var pb = ctx.tb.pasteBinGet(); var startLine = ctx.c.line(); ctx.deleteLine(); if(ctx.c.line() < ctx.tb.length()-1){ctx.jumpLine(-1);ctx.jumpTo(1);} if(startLine === 0){ctx.jumpTo(0); ctx.newLine(); ctx.jumpTo(2); }else { ctx.newLine(); } for(var i = 0; i < pb.length; i++){for (var a = 0; a < pb[i].length; a++) {var char = pb[i].charCodeAt(a); ctx.keyPress(char)}}"
]
},
{
"id": "replaceLine-ctrl+p-win",
"asciiCode": 4464,
"functions": [
"var pb = ctx.tb.pasteBinGet(); var startLine = ctx.c.line(); ctx.deleteLine(); if(ctx.c.line() < ctx.tb.length()-1){ctx.jumpLine(-1);ctx.jumpTo(1);} if(startLine === 0){ctx.jumpTo(0); ctx.newLine(); ctx.jumpTo(2); }else { ctx.newLine(); } for(var i = 0; i < pb.length; i++){for (var a = 0; a < pb[i].length; a++) {var char = pb[i].charCodeAt(a); ctx.keyPress(char)}}"
]
},
{
"id": "up",
"asciiCode": -9,
Expand Down Expand Up @@ -171,46 +227,102 @@
]
},
{
"id": "jump-top-alt-up",
"id": "jump_top-opt+up-mac",
"asciiCode": 2039,
"functions": [
"ctx.jumpTo(2)"
]
},
{
"id": "jump-bottom-alt-down",
"id": "jump_top-ctrl+up-win",
"asciiCode": 4343,
"functions": [
"ctx.jumpTo(2)"
]
},
{
"id": "jump_bottom-opt+down-mac",
"asciiCode": 2038,
"functions": [
"ctx.jumpTo(3)"
]
},
{
"id": "jump-begin-alt-left",
"id": "jump_bottom-opt+down-win",
"asciiCode": 4342,
"functions": [
"ctx.jumpTo(3)"
]
},
{
"id": "jump_startline-opt+left-mac",
"asciiCode": 2037,
"functions": [
"ctx.jumpTo(0)"
]
},
{
"id": "jump-end-alt-right",
"id": "jump_startline-ctrl+left-win",
"asciiCode": 4341,
"functions": [
"ctx.jumpTo(0)"
]
},
{
"id": "jump_endline-opt+right-mac",
"asciiCode": 2036,
"functions": [
"ctx.jumpTo(1)"
]
},
{
"id": "jumpWord-left-cmd-left",
"asciiCode": 8804,
"id": "jump_endline-ctrl+right-win",
"asciiCode": 4340,
"functions": [
"ctx.jumpTo(1)"
]
},
{
"id": "jumpWord_left-cmd+left-mac",
"asciiCode": 245,
"functions": [
"ctx.jumpWord(-1)"
]
},
{
"id": "jumpWord_left-ctrl+shift+left-win",
"asciiCode": 4853,
"functions": [
"ctx.jumpWord(-1)"
]
},
{
"id": "jumpWord-right-cmd-right",
"asciiCode": 8805,
"id": "jumpWord_right-cmd+right-mac",
"asciiCode": 244,
"functions": [
"ctx.jumpWord(1)"
]
},
{
"id": "jumpWord_right-ctrl+shift+right-win",
"asciiCode": 4852,
"functions": [
"ctx.jumpWord(1)"
]
},
{
"id": "ephemeral_mode-opt+g-mac",
"asciiCode": 169,
"functions": [
"return ['ephemeral_mode']"
]
},
{
"id": "ephemeral_mode-ctrl+g-win",
"asciiCode": 4455,
"functions": [
"return ['ephemeral_mode']"
]
}
]
}

0 comments on commit 265c8bb

Please sign in to comment.