Implement a simple autobind

This commit is contained in:
Bán Dénes 2022-02-27 18:18:16 +01:00
parent d23bd71b7a
commit b928cbd35d
17 changed files with 221 additions and 28 deletions

View file

@ -1 +1 @@
Error: Input doesn't resolve into an object!
Error: Input doesn't resolve into an object!

View file

@ -17,6 +17,7 @@ matrix:
width: 18
height: 18
padding: 19
autobind: 10
skip: false
asym: both
colrow: default_default
@ -28,3 +29,8 @@ matrix:
key: {}
name: default
row: default
bind:
- 0
- 0
- 0
- 0

View file

@ -8,4 +8,5 @@ $default_splay: 0
$default_height: 18
$default_width: 18
$default_padding: 19
$default_autobind: 10
a: 47

View file

@ -17,6 +17,7 @@ matrix_col_row:
width: 18
height: 18
padding: 19
autobind: 10
skip: false
asym: both
colrow: col_row
@ -32,3 +33,8 @@ matrix_col_row:
name: matrix
col: *ref_0
row: row
bind:
- 0
- 0
- 0
- 0

View file

@ -8,3 +8,4 @@ $default_splay: 0
$default_height: 18
$default_width: 18
$default_padding: 19
$default_autobind: 10

View file

@ -1 +1 @@
Usage: ergogen <config_file> [options]
Usage: ergogen <config_file> [options]

View file

@ -1 +1 @@
Could not read config file "nonexistent.yaml": Error: ENOENT: no such file or directory, open 'nonexistent.yaml'
Could not read config file "nonexistent.yaml": Error: ENOENT: no such file or directory, open 'nonexistent.yaml'

View file

@ -15,6 +15,7 @@ outlines:
- what: rectangle
where: true
size: cy
bound: true
fillet:
- what: outline
name: base

View file

@ -20,6 +20,7 @@
"width": 18,
"height": 18,
"padding": 19,
"autobind": 10,
"skip": false,
"asym": "both",
"colrow": "left_bottom",
@ -61,7 +62,13 @@
"key": {},
"name": "left"
},
"row": "bottom"
"row": "bottom",
"bind": [
10,
0,
0,
0
]
}
},
"matrix_left_top": {
@ -85,6 +92,7 @@
"width": 18,
"height": 18,
"padding": 19,
"autobind": 10,
"skip": false,
"asym": "both",
"colrow": "left_top",
@ -126,7 +134,13 @@
"key": {},
"name": "left"
},
"row": "top"
"row": "top",
"bind": [
0,
10,
10,
0
]
}
},
"matrix_right_bottom": {
@ -150,6 +164,7 @@
"width": 18,
"height": 18,
"padding": 19,
"autobind": 10,
"skip": false,
"asym": "both",
"colrow": "right_bottom",
@ -208,7 +223,13 @@
},
"name": "right"
},
"row": "bottom"
"row": "bottom",
"bind": [
10,
0,
0,
10
]
}
},
"matrix_right_top": {
@ -232,6 +253,7 @@
"width": 18,
"height": 18,
"padding": 19,
"autobind": 10,
"skip": false,
"asym": "both",
"colrow": "right_top",
@ -290,7 +312,13 @@
},
"name": "right"
},
"row": "top"
"row": "top",
"bind": [
0,
0,
10,
0
]
}
}
}

View file

@ -20,6 +20,7 @@
"width": 18,
"height": 18,
"padding": 19,
"autobind": 10,
"skip": false,
"asym": "both",
"colrow": "left_bottom",
@ -40,7 +41,13 @@
"key": {},
"name": "left"
},
"row": "bottom"
"row": "bottom",
"bind": [
10,
10,
0,
0
]
}
},
"matrix_left_top": {
@ -64,6 +71,7 @@
"width": 18,
"height": 18,
"padding": 19,
"autobind": 10,
"skip": false,
"asym": "both",
"colrow": "left_top",
@ -84,7 +92,13 @@
"key": {},
"name": "left"
},
"row": "top"
"row": "top",
"bind": [
0,
10,
10,
0
]
}
},
"matrix_right_bottom": {
@ -108,6 +122,7 @@
"width": 18,
"height": 18,
"padding": 19,
"autobind": 10,
"skip": false,
"asym": "both",
"colrow": "right_bottom",
@ -128,7 +143,13 @@
"key": {},
"name": "right"
},
"row": "bottom"
"row": "bottom",
"bind": [
10,
0,
0,
10
]
}
},
"matrix_right_top": {
@ -152,6 +173,7 @@
"width": 18,
"height": 18,
"padding": 19,
"autobind": 10,
"skip": false,
"asym": "both",
"colrow": "right_top",
@ -172,7 +194,13 @@
"key": {},
"name": "right"
},
"row": "top"
"row": "top",
"bind": [
0,
0,
10,
10
]
}
}
}

View file

@ -20,6 +20,7 @@
"width": 18,
"height": 18,
"padding": 19,
"autobind": 10,
"skip": false,
"asym": "both",
"colrow": "default_default",
@ -32,7 +33,13 @@
"key": {},
"name": "default"
},
"row": "default"
"row": "default",
"bind": [
0,
0,
0,
0
]
}
}
}

View file

@ -20,6 +20,7 @@
"width": 18,
"height": 18,
"padding": 19,
"autobind": 10,
"skip": false,
"asym": "both",
"colrow": "left_bottom",
@ -57,7 +58,13 @@
"key": {},
"name": "left"
},
"row": "bottom"
"row": "bottom",
"bind": [
10,
10,
0,
0
]
}
},
"matrix_left_home": {
@ -81,6 +88,7 @@
"width": 18,
"height": 18,
"padding": 19,
"autobind": 10,
"skip": false,
"asym": "both",
"colrow": "left_home",
@ -118,7 +126,13 @@
"key": {},
"name": "left"
},
"row": "home"
"row": "home",
"bind": [
0,
10,
10,
0
]
}
},
"matrix_middle_bottom": {
@ -142,6 +156,7 @@
"width": 18,
"height": 18,
"padding": 19,
"autobind": 10,
"skip": false,
"asym": "both",
"colrow": "middle_bottom",
@ -181,7 +196,13 @@
"key": {},
"name": "middle"
},
"row": "bottom"
"row": "bottom",
"bind": [
10,
0,
0,
10
]
}
},
"matrix_middle_home": {
@ -205,6 +226,7 @@
"width": 18,
"height": 18,
"padding": 19,
"autobind": 10,
"skip": false,
"asym": "both",
"colrow": "middle_home",
@ -244,7 +266,13 @@
"key": {},
"name": "middle"
},
"row": "home"
"row": "home",
"bind": [
10,
10,
10,
10
]
}
},
"matrix_middle_top": {
@ -268,6 +296,7 @@
"width": 18,
"height": 18,
"padding": 19,
"autobind": 10,
"skip": false,
"asym": "both",
"colrow": "middle_top",
@ -307,7 +336,13 @@
"key": {},
"name": "middle"
},
"row": "top"
"row": "top",
"bind": [
0,
10,
10,
0
]
}
},
"matrix_right_home": {
@ -331,6 +366,7 @@
"width": 18,
"height": 18,
"padding": 19,
"autobind": 10,
"skip": false,
"asym": "both",
"colrow": "right_home",
@ -374,7 +410,13 @@
},
"name": "right"
},
"row": "home"
"row": "home",
"bind": [
10,
0,
0,
10
]
}
},
"matrix_right_top": {
@ -398,6 +440,7 @@
"width": 18,
"height": 18,
"padding": 19,
"autobind": 10,
"skip": false,
"asym": "both",
"colrow": "right_top",
@ -441,7 +484,13 @@
},
"name": "right"
},
"row": "top"
"row": "top",
"bind": [
0,
0,
10,
10
]
}
}
}

View file

@ -3,12 +3,13 @@
"u": 19,
"cx": 18,
"cy": 17,
"a": 10,
"b": 15,
"$default_stagger": 0,
"$default_spread": 19,
"$default_splay": 0,
"$default_height": 18,
"$default_width": 18,
"$default_padding": 19
"$default_padding": 19,
"$default_autobind": 10,
"a": 10,
"b": 15
}