You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
951 B

  1. #include "leader.h"
  2. LEADER_EXTERNS();
  3. // Runs constantly in the background, in a loop.
  4. void matrix_scan_user(void){
  5. #ifdef TAP_DANCE_ENABLE // Run Diablo 3 macro checking code.
  6. // run_diablo_macro_check();
  7. #endif // TAP_DANCE_ENABLE
  8. #ifdef RGBLIGHT_ENABLE
  9. matrix_scan_rgb();
  10. #endif // RGBLIGHT_ENABLE
  11. LEADER_DICTIONARY() {
  12. leading = false;
  13. leader_end();
  14. SEQ_TWO_KEYS(KC_V, KC_Z){
  15. // vim: Zoom pane
  16. tap_code16(LCTL(KC_W));
  17. tap_code16(LSFT(KC_BSLS));
  18. }
  19. SEQ_TWO_KEYS(KC_V, KC_R) {
  20. // vim: Substitute and place cursor
  21. SEND_STRING(":%s///g" SS_TAP(X_LEFT));
  22. tap_code(KC_LEFT);
  23. tap_code(KC_LEFT);
  24. }
  25. SEQ_TWO_KEYS(KC_V, KC_T) {
  26. // vim: move current pane to new tab
  27. tap_code16(LCTL(KC_W));
  28. tap_code16(LSFT(KC_T));
  29. }
  30. SEQ_THREE_KEYS(KC_BSPC, KC_BSPC, KC_BSPC){
  31. // Reset the keyboard
  32. reset_keyboard();
  33. }
  34. }
  35. matrix_scan_keymap();
  36. }