Command Palette

Search for a command to run...

atypical
Commit grammar

Spacing

gap and tight, for spaces inside the prefix.

Without gap, slots are adjacent and the only space is the one before the description.

FieldBehavior
gapOwes one space after the slot. The next present slot takes it, or the description if none is present. An absent slot passes it on
tightAttaches to the preceding text without a space, and passes any owed space to the following slot

Example

The gitmoji preset: intention with gap, an optional scope, and an optional tight separator.

HeaderResult
✨ Add a featureValid: the description takes the gap
✨ (auth): Add a featureValid: scope takes the gap
✨: Add a featureValid: the separator attaches; the description takes the gap
✨(auth): Add a featureInvalid: scope is not tight and needs the space
✨ Add a featureInvalid: two spaces

Openers after a gap

An optional delimited slot behind a gap is committed to once its opener follows the space. With an optional (...) there, a description starting with ( is parsed as that slot.

On this page