Skip to content

Commit

Permalink
Merge pull request #1488 from mlewand/mlewand-caps-settings
Browse files Browse the repository at this point in the history
Added caps hotkey for square brackets
  • Loading branch information
tekezo authored Sep 17, 2023
2 parents 47ee3c1 + 18bf39e commit 4926ca2
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 3 deletions.
48 changes: 47 additions & 1 deletion public/json/personal_mlewand.json
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,54 @@
]
},
{
"description": "Typing extras (caps+s→,, caps+d→., caps+w→(, caps+e→), caps+shift+w→{, caps+shift+e→})",
"description": "Typing extras (caps+s→,, caps+d→., caps+w→(, caps+e→), caps+shift+w→{, caps+shift+e→}, caps+a→[, caps+shift+a→])",
"manipulators": [
{
"type": "basic",
"conditions": [
{
"name": "caps_lock pressed",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "a",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "close_bracket"
}
]
},
{
"type": "basic",
"conditions": [
{
"name": "caps_lock pressed",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "a",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "open_bracket"
}
]
},
{
"type": "basic",
"conditions": [
Expand Down
5 changes: 3 additions & 2 deletions src/json/personal_mlewand.json.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,10 @@ const sections = [
],
},
{
name: 'Typing extras (caps+s→,, caps+d→., caps+w→(, caps+e→), caps+shift+w→{, caps+shift+e→})',
name: 'Typing extras (caps+s→,, caps+d→., caps+w→(, caps+e→), caps+shift+w→{, caps+shift+e→}, caps+a→[, caps+shift+a→])',
manipulators: [
// getBasicCapsManipulator({ from: 'a', to: [ 'open_bracket', 'close_bracket' ] }), // unsupported fromat yet
getBasicCapsManipulator({ from: { key_code: 'a', modifiers: { mandatory: [ 'left_shift' ] } }, to: 'close_bracket' }),
getBasicCapsManipulator({ from: 'a', to: 'open_bracket' }),
getBasicCapsManipulator({ from: 's', to: 'comma' }),
getBasicCapsManipulator({ from: 'd', to: 'period' }),
getBasicCapsManipulator({ from: { key_code: 'w', modifiers: { mandatory: [ 'left_shift' ] } }, to: { key: 'open_bracket', modifiers: [ 'left_shift' ] } }),
Expand Down

0 comments on commit 4926ca2

Please sign in to comment.