pqrs-org / Karabiner-Elements

Karabiner-Elements is a powerful tool for customizing keyboards on macOS
https://karabiner-elements.pqrs.org/
The Unlicense
18.96k stars 840 forks source link

Map one key to multiple keystrokes, with repeat #2974

Open andmis opened 2 years ago

andmis commented 2 years ago

I would like to remap command+arrow_keys to move by multiple spaces, so that I can move around in text files more quickly. I can achieve this using a complex modification like this:

                            {
                                "from": {
                                    "key_code": "up_arrow",
                                    "modifiers": {
                                        "mandatory": [
                                            "command"
                                        ]
                                    }
                                },
                                "to": [
                                    { "key_code": "up_arrow" },
                                    { "key_code": "up_arrow" },
                                    { "key_code": "up_arrow" },
                                    { "key_code": "up_arrow" },
                                    { "key_code": "up_arrow" }
                                ],
                                "type": "basic"
                            },

This works, except that if I hold command+up_arrow down, I would like the move-up-by-five-spaces action to repeat, but it only repeats the last "to" event in the sequence, so I only move up by one line at a time. It would be great if I could configure it to repeat all the "to" events.

stuartisaac commented 1 year ago

I would like this capability as well.

luxuxl commented 7 months ago

really need it,had seen since 2021

zerogtiger commented 3 months ago

Please update. Would love to see this implemented.