diff options
author | QMK Bot <hello@qmk.fm> | 2021-06-24 02:24:08 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2021-06-24 02:24:08 +0000 |
commit | 303132fa8de23602eea131c2df03ca1d35c1ff59 (patch) | |
tree | 8f7a7762ae25901fa73b24cfc5c3c5acc1eac8eb /users/rverst/rverst.c | |
parent | 7e7e6d1a0234be05224db581db48cdea81d7087f (diff) | |
parent | 3099630a11ff64797deb4864193c37b3e4074e05 (diff) |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'users/rverst/rverst.c')
-rw-r--r-- | users/rverst/rverst.c | 33 |
1 files changed, 30 insertions, 3 deletions
diff --git a/users/rverst/rverst.c b/users/rverst/rverst.c index 23391caa6a..2cbffbc478 100644 --- a/users/rverst/rverst.c +++ b/users/rverst/rverst.c @@ -39,9 +39,7 @@ uint8_t get_mode(void) { } void set_mode(uint8_t mode, bool save) { - if (mode == get_mode()) { - return; - } + dprintf("set_mode - mode: %d, save: %s\n", mode, save ? "true" : "false"); switch_mode(mode); if (mode > 7) { @@ -392,6 +390,35 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { send_unicode_string("³"); } return false; + // vim equal split + case RV_SEQU: + tap_code16(C(KC_W)); + tap_code(KC_EQL); + return false; + // vim vertical split increase + case RV_VINC: + tap_code16(C(KC_W)); + tap_code(KC_4); + tap_code16(S(KC_DOT)); + return false; + // vim vertical split decrease + case RV_VDEC: + tap_code16(C(KC_W)); + tap_code(KC_4); + tap_code16(S(KC_COMM)); + return false; + // vim split increase + case RV_SINC: + tap_code16(C(KC_W)); + tap_code(KC_4); + tap_code16(S(KC_EQL)); + return false; + // vim split decrease + case RV_SDEC: + tap_code16(C(KC_W)); + tap_code(KC_4); + tap_code(KC_MINS); + return false; } return true; |