<commit_before><?xml version="1.0"?>
<root>

  <item>
    <name>Use "hjkl" keys as arrow keys if you are not editing text.</name>

    <item>
      <name>Enable in some standard apps.</name>
      <appendix>Supported Applications:</appendix>
      <appendix>- Finder, iPhoto, iTunes, Mail.app.</appendix>
      <appendix>- Activity Monitor.</appendix>
      <appendix>- System Preferences, Karabiner, Seil.</appendix>
      <identifier>remap.hjkl_arrow</identifier>

      {{ HJKL_ARROW_EXTRA }}

      <block>
        <only>
          FINDER, IPHOTO, ITUNES, SYSTEM_PREFERENCES,
          Activity_Monitor,
          Karabiner, Seil,
        </only>
        <uielementrole_not>AXTextField, AXTextArea</uielementrole_not>
        <modifier_only>
          ModifierFlag::NONE,
          ModifierFlag::SHIFT_L | ModifierFlag::NONE,
          ModifierFlag::SHIFT_R | ModifierFlag::NONE,
        </modifier_only>
        <autogen>__KeyToKey__ KeyCode::H, KeyCode::CURSOR_LEFT</autogen>
        <autogen>__KeyToKey__ KeyCode::J, KeyCode::CURSOR_DOWN</autogen>
        <autogen>__KeyToKey__ KeyCode::K, KeyCode::CURSOR_UP</autogen>
        <autogen>__KeyToKey__ KeyCode::L, KeyCode::CURSOR_RIGHT</autogen>
      </block>

      <block>
        <only>MAIL</only>
        <!-- Mail body editor is AXWebArea -->
        <uielementrole_not>AXTextField, AXTextArea, AXWebArea</uielementrole_not>
        <modifier_only>
          ModifierFlag::NONE,
          ModifierFlag::SHIFT_L | ModifierFlag::NONE,
          ModifierFlag::SHIFT_R | ModifierFlag::NONE,
        </modifier_only>
        <autogen>__KeyToKey__ KeyCode::H, KeyCode::CURSOR_LEFT</autogen>
        <autogen>__KeyToKey__ KeyCode::J, KeyCode::CURSOR_DOWN</autogen>
        <autogen>__KeyToKey__ KeyCode::K, KeyCode::CURSOR_UP</autogen>
        <autogen>__KeyToKey__ KeyCode::L, KeyCode::CURSOR_RIGHT</autogen>
      </block>
    </item>

    <item>
      <name>Enable in Xcode.</name>
      <identifier>remap.hjkl_arrow_xcode</identifier>
      <only>XCODE</only>
      <uielementrole_not>AXTextField, AXTextArea</uielementrole_not>
      <modifier_only>
        ModifierFlag::NONE,
        ModifierFlag::SHIFT_L | ModifierFlag::NONE,
        ModifierFlag::SHIFT_R | ModifierFlag::NONE,
      </modifier_only>
      <autogen>__KeyToKey__ KeyCode::H, KeyCode::CURSOR_LEFT</autogen>
      <autogen>__KeyToKey__ KeyCode::J, KeyCode::CURSOR_DOWN</autogen>
      <autogen>__KeyToKey__ KeyCode::K, KeyCode::CURSOR_UP</autogen>
      <autogen>__KeyToKey__ KeyCode::L, KeyCode::CURSOR_RIGHT</autogen>
    </item>

    <item>
      <name>Enable in Twitter.</name>
      <identifier>remap.hjkl_arrow_twitter</identifier>
      <only>Twitter</only>
      <uielementrole_not>AXTextField, AXTextArea</uielementrole_not>
      <modifier_only><commit_msg>update remap.hjkl_arrow_xcode<commit_after><?xml version="1.0"?>
<root>

  <item>
    <name>Use "hjkl" keys as arrow keys if you are not editing text.</name>

    <item>
      <name>Enable in some standard apps.</name>
      <appendix>Supported Applications:</appendix>
      <appendix>- Finder, iPhoto, iTunes, Mail.app.</appendix>
      <appendix>- Activity Monitor.</appendix>
      <appendix>- System Preferences, Karabiner, Seil.</appendix>
      <identifier>remap.hjkl_arrow</identifier>

      {{ HJKL_ARROW_EXTRA }}

      <block>
        <only>
          FINDER, IPHOTO, ITUNES, SYSTEM_PREFERENCES,
          Activity_Monitor,
          Karabiner, Seil,
        </only>
        <uielementrole_not>AXTextField, AXTextArea</uielementrole_not>
        <modifier_only>
          ModifierFlag::NONE,
          ModifierFlag::SHIFT_L | ModifierFlag::NONE,
          ModifierFlag::SHIFT_R | ModifierFlag::NONE,
        </modifier_only>
        <autogen>__KeyToKey__ KeyCode::H, KeyCode::CURSOR_LEFT</autogen>
        <autogen>__KeyToKey__ KeyCode::J, KeyCode::CURSOR_DOWN</autogen>
        <autogen>__KeyToKey__ KeyCode::K, KeyCode::CURSOR_UP</autogen>
        <autogen>__KeyToKey__ KeyCode::L, KeyCode::CURSOR_RIGHT</autogen>
      </block>

      <block>
        <only>MAIL</only>
        <!-- Mail body editor is AXWebArea -->
        <uielementrole_not>AXTextField, AXTextArea, AXWebArea</uielementrole_not>
        <modifier_only>
          ModifierFlag::NONE,
          ModifierFlag::SHIFT_L | ModifierFlag::NONE,
          ModifierFlag::SHIFT_R | ModifierFlag::NONE,
        </modifier_only>
        <autogen>__KeyToKey__ KeyCode::H, KeyCode::CURSOR_LEFT</autogen>
        <autogen>__KeyToKey__ KeyCode::J, KeyCode::CURSOR_DOWN</autogen>
        <autogen>__KeyToKey__ KeyCode::K, KeyCode::CURSOR_UP</autogen>
        <autogen>__KeyToKey__ KeyCode::L, KeyCode::CURSOR_RIGHT</autogen>
      </block>
    </item>

    <item>
      <name>Enable in Xcode.</name>
      <identifier>remap.hjkl_arrow_xcode</identifier>
      <only>XCODE</only>
      <uielementrole_not>
        AXTextField,
        AXTextArea,
        AXComboBox,
      </uielementrole_not>
      <modifier_only>
        ModifierFlag::NONE,
        ModifierFlag::SHIFT_L | ModifierFlag::NONE,
        ModifierFlag::SHIFT_R | ModifierFlag::NONE,
      </modifier_only>
      <autogen>__KeyToKey__ KeyCode::H, KeyCode::CURSOR_LEFT</autogen>
      <autogen>__KeyToKey__ KeyCode::J, KeyCode::CURSOR_DOWN</autogen>
      <autogen>__KeyToKey__ KeyCode::K, KeyCode::CURSOR_UP</autogen>
      <autogen>__KeyToKey__ KeyCode::L, KeyCode::CURSOR_RIGHT</autogen>
    </item>

    <item>
      <name>Enable in Twitter.</name>
      <identifier>remap.hjkl_arrow_twitter</identifier>
      <only>Twitter</only>
      <uielementrole_not>AXTextField, AXTextArea</uielementrole_not>
      <modifier_only>
{'fraction_non_alphanumeric': 0.12767841331680538, 'fraction_numerical': 0.0007083407118824154, 'mean_word_length': 3.2149253731343284, 'pattern_counts': {'":': 0, '<': 167, '<?xml version=': 2, '>': 167, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1886831', 'n_tokens_mistral': 1988, 'n_tokens_neox': 1925, 'n_words': 281}