added N_DEL_LINE macro, but didn't add to any keymaps yet. macro to delete the text on the current line

This commit is contained in:
Sadek Baroudi 2021-10-05 16:35:57 -07:00
parent 08ab9a4e05
commit fe7c8f8adb
2 changed files with 12 additions and 0 deletions

View File

@ -226,6 +226,17 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
// when keycode is released
}
break;
case N_DEL_LINE:
if (record->event.pressed) {
SEND_STRING(SS_TAP(X_END));
register_code(KC_LSHIFT);
SEND_STRING(SS_TAP(X_HOME));
unregister_code(KC_LSHIFT);
SEND_STRING(SS_TAP(X_BSPC));
} else {
// when keycode is released
}
break;
case P_ANGBRKT:
if (record->event.pressed) {
SEND_STRING("<>"SS_TAP(X_LEFT));

View File

@ -17,6 +17,7 @@ enum userspace_custom_keycodes {
L_GREP,
L_FIND,
L_GITCOMMIT,
N_DEL_LINE,
P_ANGBRKT,
P_PAREN,
P_CURLY,