Command Palette

Search for a command to run...

atypical
Commit grammar

One of

A slot that matches exactly one of several forms.

A one-of slot matches exactly one of its options. Each option has a name, one of kind or delimiters, and optional values.

[[commit.slots]]
name = "intention"
required = true
gap = true

[[commit.slots.one-of]]
name = "emoji"
kind = "symbols"
values = ["✨", "🐛"]

[[commit.slots.one-of]]
name = "shortcode"
delimiters = [":", ":"]
values = ["sparkles", "bug"]
HeaderResult
✨ add a featureValid
:sparkles: add a featureValid
✨:bug: xInvalid: two forms

Key placement

KeyBelongs on
required, gap, tightOuter slot
valuesEach option
Misplaced keyError
values on the outer slot`values` does not apply to slot `intention`
required on an option`required` does not apply to slot `emoji`
gap on an option`gap` does not apply to slot `emoji`
tight on an option`tight` does not apply to slot `emoji`
one-of inside an option`one-of` does not apply to slot `emoji`

Overlap

Two options that can start on the same input are rejected. An unrestricted symbols option overlaps a :-delimited option:

`emoji` and `shortcode` can start on the same input

A closed values list on the symbols option removes the overlap.

On this page