Repeat Keys
Este conteúdo não está disponível em sua língua ainda.
Use a repeat key when doubling a letter with a different finger is easier than striking the same key twice. Use skip-repeat when one press intervenes, and choose keystroke replay if the earlier key or chord should respond to the new context.
Repeat Output or Replay a Key
Section titled “Repeat Output or Replay a Key”Chog v2 types “cc” with one letter press and one press of the Magic key, which repeats the previous output here.
[layers.base.bindings]magic = { type = "repeat" }The repeat binding uses the default repeat_kind of copying output.
When the original keystroke should run again in its new context, use replay, as Afterburner does for both defaults.
[layers.base.bindings]magic = { repeat_kind = "keystroke", type = "repeat" }magic2 = { repeat_kind = "keystroke", type = "skip_repeat" }Both repeat and skip_repeat set repeat_kind to replay the selected input.
Fields
Section titled “Fields”| Field | Use |
|---|---|
type = "repeat" | Repeat the preceding item. |
type = "skip_repeat" | Repeat the item before the preceding item. |
repeat_kind = "output" | Copy the text the selected item produced. This is the default. |
repeat_kind = "keystroke" | Run the selected key or chord behavior again, including any applicable contextual rules. |
Use these objects in a layer’s bindings or combos, in a tap or hold branch, or as an outcome in a contextual rule’s set table.
Reference
Section titled “Reference”Binding behaviors#
Repeat and skip-repeat#
{ type = "repeat" | "skip_repeat" }repeat replays the preceding item; skip_repeat replays the item before it.
Repeat kind#
repeat_kind = "output" | "keystroke"
output repeats the text the earlier action produced. keystroke runs that earlier key or chord behavior again, so contextual behavior can be evaluated again.