summaryrefslogtreecommitdiffstats
path: root/docs/feature_combo.md
Commit message (Collapse)AuthorAgeFilesLines
* Normalise Combo keycodes (#18877)Ryan2022-10-271-5/+5
|
* Use a macro to compute the size of arrays at compile time (#18044)Jeff Epler2022-08-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* [Docs] Use layer number as example for COMBO_ONLY_FROM_LAYER (#18072)Albert Y2022-08-161-1/+1
| | | Co-authored-by: Ryan <fauxpark@gmail.com>
* New combo configuration options (#15083)Pete Sevander2022-01-091-3/+39
| | | Co-authored-by: precondition <57645186+precondition@users.noreply.github.com>
* Link Macro example for COMBO_ACTION documentation (#15164)Albert Y2021-12-271-1/+1
| | | | | | | * Link Macro example for COMBO_ACTION documentation * Restructure Co-authored-by: filterpaper <filterpaper@localhost>
* Merge remote-tracking branch 'origin/master' into developQMK Bot2021-11-221-1/+1
|\
| * layer_combo → sd_combo (#15266)precondition2021-11-231-1/+1
| |
* | Basic keycode overhaul (#14726)Ryan2021-11-031-1/+1
|/
* Process combos earlier & overlapping combos (#8591)Pete Sevander2021-08-061-33/+259
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* changed type of process_combo_event argument in tutorial (#10621)Jan-Frederick Musiol2020-10-131-1/+1
| | | in tutorial for combos feature, changed type of compo_index argument of process_combo_event form uint8_t to uint16_t
* Change "yu" to "you" in combo docs (#6510)Michael Clayton2019-08-081-1/+1
|
* Allow Combo feature to be enabled/disabled live (#6318)Drashna Jaelre2019-07-161-9/+23
| | | | | | | | | | | | | | * 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
* [Docs] Make Code Examples Consistent On Combo Page (#6078)Alex Mayer2019-06-051-1/+2
|
* Remove caveat about combos with shared keys (#5601)Noah Frederick2019-04-101-1/+0
| | | Combos with shared keys are supported as of https://github.com/qmk/qmk_firmware/pull/2561. Therefore, this caveat no longer applies.
* added missing ; on example (#5089)Joshua Bragge2019-02-091-1/+1
|
* fix example to reflect caveatDrashna Jaelre2018-11-061-5/+5
|
* Add key caveat to combos docDrashna Jaelre2018-10-271-0/+1
|
* Add documentation for Combo featureDrashna Jaelre2018-10-101-0/+88