summaryrefslogtreecommitdiff
path: root/docs/feature_combo.md
AgeCommit message (Collapse)Author
2023-05-15Keymap introspection for combos. (#19670)Nick Brassel
2023-04-20[Docs] Remove combo count from array (#20511)Albert Y
2023-03-08[Docs] Add mod-tap section header (#20041)Albert Y
2023-02-13Add combo hook to allow per layer combo reference layers. (#16699)Eric.a Gebhart
Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Sergey Vlasov <sigprof@gmail.com>
2023-02-10[Docs] Combos example consistently uses A B keys (#19792)Arialdo Martini
2023-01-05A comma was missing (#19507)Paul Massendari
2022-10-27Normalise Combo keycodes (#18877)Ryan
2022-08-30Use a macro to compute the size of arrays at compile time (#18044)Jeff Epler
* Add ARRAY_SIZE and CEILING utility macros * Apply a coccinelle patch to use ARRAY_SIZE * fix up some straggling items * Fix 'make test:secure' * Enhance ARRAY_SIZE macro to reject acting on pointers The previous definition would not produce a diagnostic for ``` int *p; size_t num_elem = ARRAY_SIZE(p) ``` but the new one will. * explicitly get definition of ARRAY_SIZE * Convert to ARRAY_SIZE when const is involved The following spatch finds additional instances where the array is const and the division is by the size of the type, not the size of the first element: ``` @ rule5a using "empty.iso" @ type T; const T[] E; @@ - (sizeof(E)/sizeof(T)) + ARRAY_SIZE(E) @ rule6a using "empty.iso" @ type T; const T[] E; @@ - sizeof(E)/sizeof(T) + ARRAY_SIZE(E) ``` * New instances of ARRAY_SIZE added since initial spatch run * Use `ARRAY_SIZE` in docs (found by grep) * Manually use ARRAY_SIZE hs_set is expected to be the same size as uint16_t, though it's made of two 8-bit integers * Just like char, sizeof(uint8_t) is guaranteed to be 1 This is at least true on any plausible system where qmk is actually used. Per my understanding it's universally true, assuming that uint8_t exists: https://stackoverflow.com/questions/48655310/can-i-assume-that-sizeofuint8-t-1 * Run qmk-format on core C files touched in this branch Co-authored-by: Stefan Kerkmann <karlk90@pm.me>
2022-08-16[Docs] Use layer number as example for COMBO_ONLY_FROM_LAYER (#18072)Albert Y
Co-authored-by: Ryan <fauxpark@gmail.com>
2022-01-09New combo configuration options (#15083)Pete Sevander
Co-authored-by: precondition <57645186+precondition@users.noreply.github.com>
2021-12-27Link Macro example for COMBO_ACTION documentation (#15164)Albert Y
* Link Macro example for COMBO_ACTION documentation * Restructure Co-authored-by: filterpaper <filterpaper@localhost>
2021-11-22Merge remote-tracking branch 'origin/master' into developQMK Bot
2021-11-23layer_combo → sd_combo (#15266)precondition
2021-11-03Basic keycode overhaul (#14726)Ryan
2021-08-06Process combos earlier & overlapping combos (#8591)Pete Sevander
* Combo processing improvements. Now it is possible to use ModTap and LayerTap keys as part of combos. Overlapping combos also don't trigger all the combos, just exactly the one that you press. New settings: - COMBO_MUST_HOLD_MODS - COMBO_MOD_TERM - COMBO_TERM_PER_COMBO - COMBO_MUST_HOLD_PER_COMBO - COMBO_STRICT_TIMER - COMBO_NO_TIMER * Remove the size flags from combo_t struct boolean members. This in the end actually saves space as the members are accessed so many times. The amount of operations needed to access the bits uses more memory than setting the size saves. * Fix `process_combo_key_release` not called correctly with tap-only combos * Fix not passing a pointer when NO_ACTION_TAPPING is defined. * Docs for `COMBO_ONLY_FROM_LAYER` * Update docs/feature_combo.md Co-authored-by: precondition <57645186+precondition@users.noreply.github.com> * Update quantum/process_keycode/process_combo.c Co-authored-by: precondition <57645186+precondition@users.noreply.github.com> * Add `EXTRA_SHORT_COMBOS` option. Stuff combo's `disabled` and `active` flags into `state`. Possibly can save some space. * Add more examples and clarify things with dict management system. - Simple examples now has a combo that has modifiers included. - The slightly more advanced examples now are actually more advanced instead of just `tap_code16(<modded-keycode>)`. - Added a note that `COMBO_ACTION`s are not needed anymore as you can just use custom keycodes. - Added a note that the `g/keymap_combo.h` macros use the `process_combo_event` function and that it is not usable in one's keymap afterwards. * Update docs/feature_combo.md Co-authored-by: precondition <57645186+precondition@users.noreply.github.com> * Update docs/feature_combo.md Co-authored-by: precondition <57645186+precondition@users.noreply.github.com> * Update docs/feature_combo.md Co-authored-by: precondition <57645186+precondition@users.noreply.github.com> * Update docs/feature_combo.md Co-authored-by: precondition <57645186+precondition@users.noreply.github.com> * Update docs/feature_combo.md Co-authored-by: precondition <57645186+precondition@users.noreply.github.com> * Change "the" combo action example to "email" example. * Update docs/feature_combo.md Co-authored-by: precondition <57645186+precondition@users.noreply.github.com> * Fix sneaky infinite loop with `combo_disable()` No need to call `dump_key_buffer` when disabling combos because the buffer is either being dumped if a combo-key was pressed, or the buffer is empty if a non-combo-key is pressed. * Update docs/feature_combo.md Co-authored-by: precondition <57645186+precondition@users.noreply.github.com> * Update docs/feature_combo.md Co-authored-by: precondition <57645186+precondition@users.noreply.github.com> Co-authored-by: precondition <57645186+precondition@users.noreply.github.com> Co-authored-by: Drashna Jaelre <drashna@live.com>
2020-10-13changed type of process_combo_event argument in tutorial (#10621)Jan-Frederick Musiol
in tutorial for combos feature, changed type of compo_index argument of process_combo_event form uint8_t to uint16_t
2019-08-08Change "yu" to "you" in combo docs (#6510)Michael Clayton
2019-07-16Allow Combo feature to be enabled/disabled live (#6318)Drashna Jaelre
* Add ability to enable/disable combos * Update documentation for Combo feature * Change keycodes for appeasement * Simplify combo_toggle function * Update names * Update combo docs to use tables
2019-06-05[Docs] Make Code Examples Consistent On Combo Page (#6078)Alex Mayer
2019-04-10Remove caveat about combos with shared keys (#5601)Noah Frederick
Combos with shared keys are supported as of https://github.com/qmk/qmk_firmware/pull/2561. Therefore, this caveat no longer applies.
2019-02-09added missing ; on example (#5089)Joshua Bragge
2018-11-06fix example to reflect caveatDrashna Jaelre
2018-10-27Add key caveat to combos docDrashna Jaelre
2018-10-10Add documentation for Combo featureDrashna Jaelre