<commit_before><?xml version="1.0"?>
<root>
  <item>
    <!--
      Inspired by and adapted from <NAME>'s "Modern Space Cadet" post:
      http://stevelosh.com/blog/2012/10/a-modern-space-cadet/#controlescape
    -->
    <name>F19 to Escape/Control</name>
    <appendix>Tap F19 for Escape; Hold F19 for Control</appendix>
    <appendix>(Recommendation: Use PCKeyboardHack to remap Caps Lock to F19.)</appendix>
    <identifier>com.jasonrudolph.f192f19_escape_or_control</identifier>
    <autogen>
      --KeyOverlaidModifier--
      KeyCode::F19,
      KeyCode::CONTROL_L,
      KeyCode::ESCAPE
    </autogen>
  </item>

  <item>
    <name>Option+H/L to delete previous/next word</name>
    <identifier>com.jasonrudolph.option_with_h_or_l_to_delete_previous_word_or_next_word</identifier>

    <!--
      "ModifierFlag::OPTION_L | ModifierFlag::NONE" causes this remapping to
      fire *only* when the the left option key is used *without* any other
      modifiers.
      See http://pqrs.org/macosx/keyremap4macbook/xml-basic.html.en#modifierflag-none
    -->
    <autogen>
      __KeyToKey__
      KeyCode::H, ModifierFlag::OPTION_L | ModifierFlag::NONE,
      KeyCode::DELETE, ModifierFlag::OPTION_L
    </autogen>
    <autogen>
      __KeyToKey__
      KeyCode::L, ModifierFlag::OPTION_L | ModifierFlag::NONE,
      KeyCode::FORWARD_DELETE, ModifierFlag::OPTION_L
    </autogen>
  </item>

  <!--
    Adapted from the built-in "Simultaneous Vi Mode" option:
    https://github.com/tekezo/KeyRemap4MacBook/blob/6aa99ba/src/core/server/Resources/include/checkbox/simultaneouskeypresses_vi_mode.xml#L4
  -->
  <item>
    <name>(S)uper (D)uper Mode</name>
    <item>
      <name>What's (S)uper (D)uper Mode?</name>
      <identifier vk_config="true">notsave.com.jasonrudolph.simultaneouskeypresses_vimode</identifier>

      <appendix>To activate, push S and D keys simultaneously and hold them down.</appendix>
      <appendix>Now you're in (S)uper (D)uper mode. It's like a secret keyboard _inside_ your keyboard. (Whoa.)</appendix>
      <appendix>It's optimized for keeping you on the home row, or very close to it.</appendix>
      <appendix>---</appendix>

      <appendix>- Use A for Option (AKA Alt)</appendix>
      <autogen>__KeyToKey__ KeyCode::A, KeyCode::OPTION_L</autogen>

      <appendix>- Use A+J/K Page Down/Up</appendix>
      <autogen>
        __KeyToKey__
        {{VI_J}}, VK_OPTION,
        KeyCode::PAGEDOWN
      </autogen>
      <autogen>
        __KeyToKey__
        {{VI_K}}, VK_OPTION,
        KeyCode::PAGEUP
      </autogen>

      <appendix>Now you can:</appendix>
      <appendix>- Use H/J/K/L for Left/Down/Up/Right</appendix>
      <autogen>__ShowStatusMessage__ (S)uper (D)uper Mode</autogen>
      <autogen>__KeyToKey__ {{VI_H}}, KeyCode::CURSOR_LEFT</autogen>
      <autogen>__KeyToKey__ {{VI_J}}, KeyCode::CURSOR_DOWN</autogen>
      <autogen>__KeyToKey__ {{VI_K}}, KeyCode::CURSOR_UP</autogen>
      <autogen>__KeyToKey__ {{VI_L}}, KeyCode::CURSOR_RIGHT</autogen>

      <appendix>- Use F for Command</appendix>
      <autogen>__KeyToKey__ KeyCode::F, KeyCode::COMMAND_L</autogen>

      <appendix>- Use Space for Shift</appendix>
      <autogen>__KeyToKey__ KeyCode::SPACE, KeyCode::SHIFT_L</autogen>

      <appendix>- Use I/O to move left/right between tabs</appendix>
      <autogen>
        __KeyToKey__
        KeyCode::I,
        KeyCode::BRACKET_LEFT,  ModifierFlag::COMMAND_L | ModifierFlag::SHIFT_L
      </autogen>
      <autogen>
        __KeyToKey__
        KeyCode::O,
        KeyCode::BRACKET_RIGHT, ModifierFlag::COMMAND_L | ModifierFlag::SHIFT_L
      </autogen>

      <appendix>- Use U/P to go to the first/last tab (in most apps)</appendix>
      <autogen>
        __KeyToKey__
        KeyCode::U,
        KeyCode::KEY_1, ModifierFlag::COMMAND_L
      </autogen>
      <autogen>
        __KeyToKey__
        KeyCode::P,
        KeyCode::KEY_9, ModifierFlag::COMMAND_L
      </autogen>
    </item>
    <item><commit_msg>Consolidate docs at top of item definition<commit_after><?xml version="1.0"?>
<root>
  <item>
    <!--
      Inspired by and adapted from <NAME>'s "Modern Space Cadet" post:
      http://stevelosh.com/blog/2012/10/a-modern-space-cadet/#controlescape
    -->
    <name>F19 to Escape/Control</name>
    <appendix>Tap F19 for Escape; Hold F19 for Control</appendix>
    <appendix>(Recommendation: Use PCKeyboardHack to remap Caps Lock to F19.)</appendix>
    <identifier>com.jasonrudolph.f192f19_escape_or_control</identifier>
    <autogen>
      --KeyOverlaidModifier--
      KeyCode::F19,
      KeyCode::CONTROL_L,
      KeyCode::ESCAPE
    </autogen>
  </item>

  <item>
    <name>Option+H/L to delete previous/next word</name>
    <identifier>com.jasonrudolph.option_with_h_or_l_to_delete_previous_word_or_next_word</identifier>

    <!--
      "ModifierFlag::OPTION_L | ModifierFlag::NONE" causes this remapping to
      fire *only* when the the left option key is used *without* any other
      modifiers.
      See http://pqrs.org/macosx/keyremap4macbook/xml-basic.html.en#modifierflag-none
    -->
    <autogen>
      __KeyToKey__
      KeyCode::H, ModifierFlag::OPTION_L | ModifierFlag::NONE,
      KeyCode::DELETE, ModifierFlag::OPTION_L
    </autogen>
    <autogen>
      __KeyToKey__
      KeyCode::L, ModifierFlag::OPTION_L | ModifierFlag::NONE,
      KeyCode::FORWARD_DELETE, ModifierFlag::OPTION_L
    </autogen>
  </item>

  <!--
    Adapted from the built-in "Simultaneous Vi Mode" option:
    https://github.com/tekezo/KeyRemap4MacBook/blob/6aa99ba/src/core/server/Resources/include/checkbox/simultaneouskeypresses_vi_mode.xml#L4
  -->
  <item>
    <name>(S)uper (D)uper Mode</name>
    <item>
      <name>What's (S)uper (D)uper Mode?</name>
      <identifier vk_config="true">notsave.com.jasonrudolph.simultaneouskeypresses_vimode</identifier>
      <autogen>__ShowStatusMessage__ (S)uper (D)uper Mode</autogen>

      <appendix>To activate, push S and D keys simultaneously and hold them down.</appendix>
      <appendix>Now you're in (S)uper (D)uper mode. It's like a secret keyboard _inside_ your keyboard. (Whoa.)</appendix>
      <appendix>It's optimized for keeping you on the home row, or very close to it.</appendix>
      <appendix>---</appendix>
      <appendix>Now you can:</appendix>
      <appendix>- Use H/J/K/L for Left/Down/Up/Right</appendix>
      <appendix>- Use F for Command</appendix>
      <appendix>- Use A for Option (AKA Alt)</appendix>
      <appendix>- Use Space for Shift</appendix>
      <appendix>- Use A+J/K for Page Down/Up</appendix>
      <appendix>- Use I/O to move left/right between tabs</appendix>
      <appendix>- Use U/P to go to the first/last tab (in most apps)</appendix>

      <autogen>__KeyToKey__ KeyCode::A, KeyCode::OPTION_L</autogen>

      <autogen>
        __KeyToKey__
        {{VI_J}}, VK_OPTION,
        KeyCode::PAGEDOWN
      </autogen>
      <autogen>
        __KeyToKey__
        {{VI_K}}, VK_OPTION,
        KeyCode::PAGEUP
      </autogen>

      <autogen>__KeyToKey__ {{VI_H}}, KeyCode::CURSOR_LEFT</autogen>
      <autogen>__KeyToKey__ {{VI_J}}, KeyCode::CURSOR_DOWN</autogen>
      <autogen>__KeyToKey__ {{VI_K}}, KeyCode::CURSOR_UP</autogen>
      <autogen>__KeyToKey__ {{VI_L}}, KeyCode::CURSOR_RIGHT</autogen>

      <autogen>__KeyToKey__ KeyCode::F, KeyCode::COMMAND_L</autogen>

      <autogen>__KeyToKey__ KeyCode::SPACE, KeyCode::SHIFT_L</autogen>

      <autogen>
        __KeyToKey__
        KeyCode::I,
        KeyCode::BRACKET_LEFT,  ModifierFlag::COMMAND_L | ModifierFlag::SHIFT_L
      </autogen>
      <autogen>
        __KeyToKey__
        KeyCode::O,
        KeyCode::BRACKET_RIGHT, ModifierFlag::COMMAND_L | ModifierFlag::SHIFT_L
      </autogen>

      <autogen>
        __KeyToKey__
        KeyCode::U,
        KeyCode::KEY_1, ModifierFlag::COMMAND_L
      </autogen>
      <autogen>
        __KeyToKey__
        KeyCode::P,
        KeyCode::KEY_9, ModifierFlag::COMMAND_L
      </autogen>
    </item>
    <item>
{'fraction_non_alphanumeric': 0.13036406855999, 'fraction_numerical': 0.007756787188790191, 'mean_word_length': 3.1121399176954734, 'pattern_counts': {'":': 0, '<': 183, '<?xml version=': 2, '>': 183, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '3838964', 'n_tokens_mistral': 2878, 'n_tokens_neox': 2756, 'n_words': 538}