fix(todo): allow priority keywords without ! prefix

Now supports both:
- "heimfahren wichtig" → priority high
- "heimfahren !wichtig" → priority high

Keywords: später, normal, wichtig, dringend (case-insensitive)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Till-JS 2025-12-10 14:57:37 +01:00
parent 04b255c161
commit 96916599a6

View file

@ -42,12 +42,12 @@ export interface ParsedTaskWithIds {
}
// Priority patterns (task-specific)
// Supports: !später, !normal, !wichtig, !dringend and shortcuts !, !!, !!!
// Supports: später, normal, wichtig, dringend (with or without !) and shortcuts !, !!, !!!
const PRIORITY_PATTERNS: { pattern: RegExp; priority: TaskPriority }[] = [
{ pattern: /!{3,}|!dringend/i, priority: 'urgent' },
{ pattern: /!{2}|!wichtig/i, priority: 'high' },
{ pattern: /!normal/i, priority: 'medium' },
{ pattern: /!später|!sp[aä]ter/i, priority: 'low' },
{ pattern: /!{3,}|!?dringend\b/i, priority: 'urgent' },
{ pattern: /!{2}|!?wichtig\b/i, priority: 'high' },
{ pattern: /!?normal\b/i, priority: 'medium' },
{ pattern: /!?sp[aä]ter\b/i, priority: 'low' },
];
/**