Karabiner elements delete a line

401 views Asked by At

I'm new to Karabiner on Mac and I'm trying to map left_option + e to deleting a line.

I know this involves defining the following keystrokes for left_command + e: left_command + shift + left_arrow + backspace_or_delete, but I don't know how to input it to the json file

1

There are 1 answers

0
Dmytro Biletskyi On

Here I created code that moves cursor to the beginning of the line and then deletes it.

{ "description": "Delete line", "manipulators": [ { "type": "basic", "from": { "key_code": "e", "modifiers": { "mandatory": ["left_option"] } }, "to": [ { "key_code": "a", "modifiers": ["left_control"] }, { "key_code": "k", "modifiers": ["left_control"] } ] } ] }