Zum Inhalt springen

Repeat Keys

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

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.

Chog v2 types “cc” with one letter press and one press of the Magic key, which repeats the previous output here. does that because Magic has no special rule after .

[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. reruns the preceding key or chord; reruns the one before it. The layout’s contextual rules can override either default.

[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.

FieldUse
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.

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.