1
0
Fork 0

[Keymap] Feature/extend keymap (#12778)

* Add F13-F24

* Add nvim macros

* Add debug switch

* Switch mode every time, add debug print
This commit is contained in:
Robert Verst 2021-06-24 04:23:43 +02:00 committed by GitHub
parent dee50c9cc8
commit 3099630a11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 80 additions and 47 deletions

View file

@ -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;