pqrs-org / Karabiner-archived

Karabiner (KeyRemap4MacBook) is a powerful utility for keyboard customization.
https://pqrs.org/osx/karabiner/
The Unlicense
3.82k stars 311 forks source link

`CAPS` + IJKL to Arrow keys + `A` to `Shift` to make selection #886

Open katerlouis opened 5 years ago

katerlouis commented 5 years ago

an IJKL is truly awesome. Selecting text however is a real pain– Caps + Shift is just not doable for my little finger. So I thought: why not map the A-key to Shift – but of course only when Caps is pressed.

I tried multiple approaches:

But wanna stick to Caps to Fn, because that leaves the modifiers untouched; so no need to map them manually (it appears that's necessary when using Hyper)

These work great:

"manipulators": [
    {"type": "basic", "from": {"key_code": "i", "modifiers": {"mandatory": ["fn"], "optional": ["any"]}}, "to": [{"key_code": "up_arrow"}] },
    {"type": "basic", "from": {"key_code": "j", "modifiers": {"mandatory": ["fn"], "optional": ["any"]}}, "to": [{"key_code": "left_arrow"}]},
    {"type": "basic", "from": {"key_code": "k", "modifiers": {"mandatory": ["fn"], "optional": ["any"]}}, "to": [{"key_code": "down_arrow"}]},
    {"type": "basic", "from": {"key_code": "l", "modifiers": {"mandatory": ["fn"], "optional": ["any"]}}, "to": [{"key_code": "right_arrow"}]}
]

With this one combined, when I press: CAPS+A+J, I get a capital J, not the expected selection to the left

 {"type": "basic", "from": {"key_code": "a", "modifiers": {"mandatory": ["fn"], "optional": ["any"]}}, "to": [{"key_code": "left_shift"}] }

And this one does only move the caret, when I Press CAPS+A+J; A is not having an effect here

 {"type": "basic", "from": {"key_code": "a", "modifiers": {"mandatory": ["fn"], "optional": ["any"]}}, "to": [{"key_code": "vk_none", "modifiers": ["left_shift"] }] }

What am I missing?