Karabiner-elements: How to set the shortcut key mapped to delete a row (control+a k k)?

Created on 7 Jun 2018  路  5Comments  路  Source: pqrs-org/Karabiner-Elements

Can Karabiner do that?
Could you please provide me with JSON?
Thank you very much.

Most helpful comment

You can combine key combinations like this

"to": [
    {
        "key_code": "a",
        "modifiers": ["left_control"]
    },
    {
        "key_code": "k",
        "modifiers": ["left_control"]
    },
    {
        "key_code": "k",
        "modifiers": ["left_control"]
    }
]

All 5 comments

            {
            "description": "control + a to delete row",
            "manipulators": [
                {
                    "type": "basic",,
                    "from": {
                        "key_code": "a",
                        "modifiers": {
                            "mandatory": [
                                "left_control"
                            ],
                            "optional": [
                                "caps_lock"
                            ]
                        }
                    },
                    "to": [
                        {
                            "key_code": "delete_or_backspace",
                            "modifiers": "right_command"
                        }
                    ]
                }
            ]
        }

You can only delete the string in front of the cursor. What I want to do is delete the line at the end of the line or in the line. In a nutshell, it's just control + a, k, k.

What I want to do is press 'control' not to loosen, then press 'a' to loosen, then press 'k' to loosen, and finally press 'k' to loosen.
Thanks.

You can combine key combinations like this

"to": [
    {
        "key_code": "a",
        "modifiers": ["left_control"]
    },
    {
        "key_code": "k",
        "modifiers": ["left_control"]
    },
    {
        "key_code": "k",
        "modifiers": ["left_control"]
    }
]

@biletskyy I've been busy recently. I just saw it today.
thanks,You solved my problem.馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

LittleNewton picture LittleNewton  路  3Comments

Farzy picture Farzy  路  3Comments

aniude picture aniude  路  3Comments

impala75 picture impala75  路  3Comments