rux616 / karabiner-windows-mode

Karabiner-Elements complex ruleset to make using macOS friendlier by enabling common keyboard functionality used in Linux and Windows.
The Unlicense
331 stars 65 forks source link

Additional command Home,End for terminal and F5 to refresh #31

Open raiika opened 4 years ago

raiika commented 4 years ago
{
  "title": "My Custom",
  "rules": [
    {
      "description": "Home (Terminal)",
      "manipulators": [
        {
          "from": {
            "key_code": "home",
            "modifiers": {"optional": ["any"]}
          },
          "to": [{
              "key_code": "a",
              "modifiers": ["control"]
          }],
          "conditions": [
            {
              "type": "frontmost_application_if",
              "bundle_identifiers": [
                "^com\\.apple\\.Terminal$",
                "^com\\.googlecode\\.iterm2$"
              ]
            }
          ],
          "type": "basic"
        }
      ]
    },
    {
      "description": "End (Terminal)",
      "manipulators": [
        {
          "from": {
            "key_code": "end",
            "modifiers": {"optional": ["any"]}
          },
          "to": [{
              "key_code": "e",
              "modifiers": ["control"]
          }],
          "conditions": [
            {
              "type": "frontmost_application_if",
              "bundle_identifiers": [
                "^com\\.apple\\.Terminal$",
                "^com\\.googlecode\\.iterm2$"
              ]
            }
          ],
          "type": "basic"
        }
      ]
    },
    {
      "description": "F5",
      "manipulators": [
        {
          "from": {
            "key_code": "f5",
            "modifiers": {"optional": ["any"]}
          },
          "to": [{
              "key_code": "r",
              "modifiers": ["command"]
          }],
          "conditions": [
            {
              "type": "frontmost_application_unless",
              "bundle_identifiers": [
              ]
            }
          ],
          "type": "basic"
        }
      ]
    }
  ]
}

Just want to add something maybe good for you guys (or even implemented in here too)

Home and End for Terminal (go to beginning of line and last of line) F5 for refresh (command+r)

Geczy commented 4 years ago

can you open a PR