Karabiner-elements: option or command + (control + hjkl) not working

Created on 16 Jan 2018  路  3Comments  路  Source: pqrs-org/Karabiner-Elements

Hello.
I has bind Control + hjkl to VIM mode.
But when press Option/Command + Control + h/l, It Not working goto the line first/end or the previous/next word.
how to fix it ?

Most helpful comment

shift/option/command + arrows is working.
contron + other any key is working.

Use Vi Mode (rev 4.3) and vi style arrows can fix it.

modify ~/.config/karabiner/karabiner.json.
append this code to ~/.config/karabiner/karabiner.json

{
  "profiles":[
    {
      "complex_modifications":{
        "rules": [
          {
          },
          // paste code
      ]
    }
  ]
}

This code append tokarabiner.json profoles.complex_modifications.rules

{
    "description": "Vi Mode [left_control + hjkl]",
    "manipulators": [
        {
            "from": {
                "key_code": "h",
                "modifiers": {
                    "mandatory": [
                        "control"
                    ],
                    "optional": [
                        "caps_lock",
                        "command",
                        "option",
                        "shift",
                        "fn"
                    ]
                }
            },
            "to": [
                {
                    "key_code": "left_arrow"
                }
            ],
            "type": "basic"
        },
        {
            "from": {
                "key_code": "j",
                "modifiers": {
                    "mandatory": [
                        "control"
                    ],
                    "optional": [
                        "caps_lock",
                        "command",
                        "option",
                        "shift",
                        "fn"
                    ]
                }
            },
            "to": [
                {
                    "key_code": "down_arrow"
                }
            ],
            "type": "basic"
        },
        {
            "from": {
                "key_code": "k",
                "modifiers": {
                    "mandatory": [
                        "control"
                    ],
                    "optional": [
                        "caps_lock",
                        "command",
                        "option",
                        "shift",
                        "fn"
                    ]
                }
            },
            "to": [
                {
                    "key_code": "up_arrow"
                }
            ],
            "type": "basic"
        },
        {
            "from": {
                "key_code": "l",
                "modifiers": {
                    "mandatory": [
                        "control"
                    ],
                    "optional": [
                        "caps_lock",
                        "command",
                        "option",
                        "shift",
                        "fn"
                    ]
                }
            },
            "to": [
                {
                    "key_code": "right_arrow"
                }
            ],
            "type": "basic"
        }
    ]
}

All 3 comments

shift/option/command + arrows is working.
contron + other any key is working.

Use Vi Mode (rev 4.3) and vi style arrows can fix it.

modify ~/.config/karabiner/karabiner.json.
append this code to ~/.config/karabiner/karabiner.json

{
  "profiles":[
    {
      "complex_modifications":{
        "rules": [
          {
          },
          // paste code
      ]
    }
  ]
}

This code append tokarabiner.json profoles.complex_modifications.rules

{
    "description": "Vi Mode [left_control + hjkl]",
    "manipulators": [
        {
            "from": {
                "key_code": "h",
                "modifiers": {
                    "mandatory": [
                        "control"
                    ],
                    "optional": [
                        "caps_lock",
                        "command",
                        "option",
                        "shift",
                        "fn"
                    ]
                }
            },
            "to": [
                {
                    "key_code": "left_arrow"
                }
            ],
            "type": "basic"
        },
        {
            "from": {
                "key_code": "j",
                "modifiers": {
                    "mandatory": [
                        "control"
                    ],
                    "optional": [
                        "caps_lock",
                        "command",
                        "option",
                        "shift",
                        "fn"
                    ]
                }
            },
            "to": [
                {
                    "key_code": "down_arrow"
                }
            ],
            "type": "basic"
        },
        {
            "from": {
                "key_code": "k",
                "modifiers": {
                    "mandatory": [
                        "control"
                    ],
                    "optional": [
                        "caps_lock",
                        "command",
                        "option",
                        "shift",
                        "fn"
                    ]
                }
            },
            "to": [
                {
                    "key_code": "up_arrow"
                }
            ],
            "type": "basic"
        },
        {
            "from": {
                "key_code": "l",
                "modifiers": {
                    "mandatory": [
                        "control"
                    ],
                    "optional": [
                        "caps_lock",
                        "command",
                        "option",
                        "shift",
                        "fn"
                    ]
                }
            },
            "to": [
                {
                    "key_code": "right_arrow"
                }
            ],
            "type": "basic"
        }
    ]
}

This has been a god-saver(1!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

KyleAtDND picture KyleAtDND  路  3Comments

baurmatt picture baurmatt  路  3Comments

jason0342 picture jason0342  路  3Comments

LittleNewton picture LittleNewton  路  3Comments

krasnovpro picture krasnovpro  路  3Comments