aboutsummaryrefslogtreecommitdiff
path: root/waffle/tapping.c
diff options
context:
space:
mode:
Diffstat (limited to 'waffle/tapping.c')
-rw-r--r--waffle/tapping.c27
1 files changed, 1 insertions, 26 deletions
diff --git a/waffle/tapping.c b/waffle/tapping.c
index 50fea91..0a01637 100644
--- a/waffle/tapping.c
+++ b/waffle/tapping.c
@@ -21,13 +21,10 @@ uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) {
case ESCLWR:
case RSEBSP:
return TAPPING_TERM - SPC_OFFSET;
- case TD(QMK_LINKS):
case TD(EM_DASH_MINS):
case TD(PLY_NXT_PRV):
case TD(CURLY_BRACKET):
case TD(SQR_BRACKET):
- case TD(BSLS_PIPE):
- case TD(QUOT_DQUO):
return TAPPING_TERM + 60;
default:
return TAPPING_TERM;
@@ -39,28 +36,13 @@ void td_reset(tap_dance_state_t *state, void *user_data) {
layer_clear();
}
-void qmk_links(tap_dance_state_t *state, void *user_data) {
- if (state->count == 1) {
- tap_code16(C(KC_T));
- send_string(qmkstr);
- tap_code(KC_ENT);
- } else {
- tap_code16(C(KC_T));
- send_string(confstr);
- tap_code(KC_ENT);
- }
-}
-
void em_dash_mins(tap_dance_state_t *state, void *user_data) {
switch (state->count) {
- case 3:
+ case 2:
#ifdef UNICODE_COMMON_ENABLE
register_unicode(0x2014); // —
#endif
break;
- case 2:
- tap_code(KC_MINS), tap_code(KC_MINS);
- break;
default:
tap_code(KC_MINS);
}
@@ -88,14 +70,11 @@ void raise_paste(tap_dance_state_t *state, void *user_data) {
}
tap_dance_action_t tap_dance_actions[] = {
- [QMK_LINKS] = ACTION_TAP_DANCE_FN(qmk_links),
[EM_DASH_MINS] = ACTION_TAP_DANCE_FN(em_dash_mins),
[PLY_NXT_PRV] = ACTION_TAP_DANCE_FN(ply_nxt_prv),
[RAISE_PASTE] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, raise_paste, td_reset),
[CURLY_BRACKET] = ACTION_TAP_DANCE_DOUBLE(KC_LCBR, KC_RCBR),
[SQR_BRACKET] = ACTION_TAP_DANCE_DOUBLE(KC_LBRC, KC_RBRC),
- [BSLS_PIPE] = ACTION_TAP_DANCE_DOUBLE(KC_BSLS, KC_PIPE),
- [QUOT_DQUO] = ACTION_TAP_DANCE_DOUBLE(KC_QUOT, KC_DQUO),
};
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
@@ -120,10 +99,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
SEND_STRING("\b```suggestion\n```");
}
break;
- case REMOVE:
- if (record->event.pressed)
- SEND_STRING("This file should be removed.");
- break;
INTERCEPT_MOD_TAP(LALT_T, KC_EXLM)
INTERCEPT_MOD_TAP(LGUI_T, KC_AT)
INTERCEPT_MOD_TAP(LCTL_T, KC_HASH)