fix: Fixed keybinds for terminal Copy+Paste and added keybind for Ctrl+L
This commit is contained in:
+9
-61
@@ -3,25 +3,25 @@
|
|||||||
"maintainers": ["nnovak"],
|
"maintainers": ["nnovak"],
|
||||||
"rules": [
|
"rules": [
|
||||||
{
|
{
|
||||||
"description": "Switch command+c to control+c for sending exit codes",
|
"description": "Remap Control+C as copy unless in terminal",
|
||||||
"manipulators": [
|
"manipulators": [
|
||||||
{
|
{
|
||||||
"conditions": [
|
"conditions": [
|
||||||
{
|
{
|
||||||
"type": "frontmost_application_if",
|
"type": "frontmost_application_unless",
|
||||||
"bundle_identifiers": ["^net\\.kovidgoyal\\.kitty$"]
|
"bundle_identifiers": ["^net\\.kovidgoyal\\.kitty$"]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"from": {
|
"from": {
|
||||||
"key_code": "c",
|
"key_code": "c",
|
||||||
"modifiers": {
|
"modifiers": {
|
||||||
"mandatory": ["option"]
|
"mandatory": ["control"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"to": [
|
"to": [
|
||||||
{
|
{
|
||||||
"key_code": "c",
|
"key_code": "c",
|
||||||
"modifiers": ["control"]
|
"modifiers": ["command"]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"type": "basic"
|
"type": "basic"
|
||||||
@@ -29,77 +29,25 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Switch cmd+shift+c to command+c to be able to copy text",
|
"description": "Remap Control+V as paste unless in terminal",
|
||||||
"manipulators": [
|
"manipulators": [
|
||||||
{
|
{
|
||||||
"conditions": [
|
"conditions": [
|
||||||
{
|
{
|
||||||
"bundle_identifiers": ["^net\\.kovidgoyal\\.kitty$"],
|
"type": "frontmost_application_unless",
|
||||||
"type": "frontmost_application_if"
|
"bundle_identifiers": ["^net\\.kovidgoyal\\.kitty$"]
|
||||||
}
|
|
||||||
],
|
|
||||||
"from": {
|
|
||||||
"key_code": "c",
|
|
||||||
"modifiers": {
|
|
||||||
"mandatory": ["left_command", "shift"]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"to": [
|
|
||||||
{
|
|
||||||
"key_code": "c",
|
|
||||||
"modifiers": ["left_command"]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type": "basic"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"description": "Switch command+v to control+v to have backwards compatibility",
|
|
||||||
"manipulators": [
|
|
||||||
{
|
|
||||||
"conditions": [
|
|
||||||
{
|
|
||||||
"bundle_identifiers": ["^net\\.kovidgoyal\\.kitty$"],
|
|
||||||
"type": "frontmost_application_if"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"from": {
|
"from": {
|
||||||
"key_code": "v",
|
"key_code": "v",
|
||||||
"modifiers": {
|
"modifiers": {
|
||||||
"mandatory": ["left_command"]
|
"mandatory": ["control"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"to": [
|
"to": [
|
||||||
{
|
{
|
||||||
"key_code": "v",
|
"key_code": "v",
|
||||||
"modifiers": ["control"]
|
"modifiers": ["command"]
|
||||||
}
|
|
||||||
],
|
|
||||||
"type": "basic"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"description": "Switch command+shift+v to command+v to be able to paste",
|
|
||||||
"manipulators": [
|
|
||||||
{
|
|
||||||
"conditions": [
|
|
||||||
{
|
|
||||||
"bundle_identifiers": ["^net\\.kovidgoyal\\.kitty$"],
|
|
||||||
"type": "frontmost_application_if"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"from": {
|
|
||||||
"key_code": "v",
|
|
||||||
"modifiers": {
|
|
||||||
"mandatory": ["left_command", "shift"]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"to": [
|
|
||||||
{
|
|
||||||
"key_code": "v",
|
|
||||||
"modifiers": ["left_command"]
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"type": "basic"
|
"type": "basic"
|
||||||
|
|||||||
@@ -65,6 +65,22 @@
|
|||||||
],
|
],
|
||||||
"type": "basic"
|
"type": "basic"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"from": {
|
||||||
|
"key_code": "l",
|
||||||
|
"modifiers": {
|
||||||
|
"mandatory": ["control"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"to": [
|
||||||
|
{
|
||||||
|
"key_code": "l",
|
||||||
|
"modifiers": ["left_command"]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "basic"
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"from": {
|
"from": {
|
||||||
"key_code": "t",
|
"key_code": "t",
|
||||||
|
|||||||
Reference in New Issue
Block a user