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.

41 lines
924 B

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