Files
verdande/internal/quickadd
Kristian WindandClaude Opus 5 b6a44244c1 feat(quickadd): natural-language task parsing in Danish and English
Parses date, time, priority, project and labels out of one typed line,
e.g. "betal moms i morgen kl 10 p1 #Firma @regnskab".

Both languages are read at once rather than behind a locale switch,
because people mix them mid-sentence. Locale settles only one genuine
ambiguity: a bare hour after English "at".

Each stage reads a copy of the line with earlier matches blanked out,
so no two readings can claim the same characters — without it "kl 10.12"
is a time and, to the date parser, also the 10th of December. Matches
are returned as byte spans so the input box can highlight what it
understood as you type.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-16 22:55:57 +02:00
..