1
0
Fork 0

Keymap introspection for combos. (#19670)

This commit is contained in:
Nick Brassel 2023-05-15 22:27:37 +10:00 committed by GitHub
parent 433dc60686
commit 5faa23d54c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
226 changed files with 533 additions and 729 deletions

View file

@ -397,11 +397,8 @@ enum combo_events {
DELQ_COMBO,
SAVEQ_COMBO,
BSPCQ_COMBO,
BSPCWQ_COMBO,
COMBO_LENGTH
BSPCWQ_COMBO
};
uint16_t COMBO_LEN = COMBO_LENGTH;
const uint16_t PROGMEM ru_combo[] = {KC_R, U_CTRL, COMBO_END};
const uint16_t PROGMEM en_combo[] = {U_CTRL, S_ALT, COMBO_END};
@ -448,5 +445,3 @@ combo_t key_combos[] = {
[SAVEQ_COMBO] = COMBO(saveq_combo, VIM_SAVE),
[BSPCWQ_COMBO] = COMBO(bspcwq_combo, A(KC_BSPC)),
};

View file

@ -511,10 +511,8 @@ enum combo_events {
CSS_STYLE,
HTML_GENERIC_TAG,
CTLRGHT,
CTLLEFT,
COMBO_LENGTH
CTLLEFT
};
uint16_t COMBO_LEN = COMBO_LENGTH; // remove the COMBO_COUNT define and use this instead!
const uint16_t PROGMEM email_combo[] = {KC_E, KC_M, COMBO_END};
const uint16_t PROGMEM email_work_combo[] = {KC_E, KC_K, COMBO_END};

View file

@ -50,8 +50,6 @@
// Most tactile encoders have detents every 4 stages
#define ENCODER_RESOLUTION 4
#define COMBO_COUNT 4
#ifdef AUDIO_ENABLE
#define DAC_SAMPLE_MAX 65535/2
#endif

View file

@ -30,7 +30,7 @@ const uint16_t PROGMEM oe_combo[] = {KC_O, KC_E, COMBO_END};
const uint16_t PROGMEM ue_combo[] = {KC_U, KC_E, COMBO_END};
const uint16_t PROGMEM sz_combo[] = {KC_S, DE_Z, COMBO_END};
combo_t key_combos[COMBO_COUNT] = {
combo_t key_combos[] = {
[AE] = COMBO(ae_combo, DE_AE),
[OE] = COMBO(oe_combo, DE_OE),
[UE] = COMBO(ue_combo, DE_UE),

View file

@ -24,7 +24,6 @@
#define TAPPING_TERM 100
#define COMBO_TERM 20
#define COMBO_COUNT 1
#define PERMISSIVE_HOLD

View file

@ -111,7 +111,6 @@
/*
* COMBO-KEY options
*/
#define COMBO_COUNT 2
#define COMBO_TERM 300
/*
* MACRO per-key options

View file

@ -168,7 +168,7 @@ enum combo_events { ZC_COPY, XV_PASTE };
const uint16_t PROGMEM copy_combo[] = {KC_Z, KC_C, COMBO_END};
const uint16_t PROGMEM paste_combo[] = {KC_X, KC_V, COMBO_END};
combo_t key_combos[COMBO_COUNT] = {
combo_t key_combos[] = {
[ZC_COPY] = COMBO_ACTION(copy_combo),
[XV_PASTE] = COMBO_ACTION(paste_combo),
};