Commit Graph

9 Commits

Author SHA1 Message Date
32cb827d26 docs: add README and LICENSE files v1 2025-11-25 17:35:19 +01:00
6022248a2f feat: add cobra CLI with input/output flags and debug option
- Add --input/-i and --output/-o flags for file selection
- Add --debug flag to print intermediate JSON to stderr
- Print errors during parsing
2025-11-25 17:28:49 +01:00
389c1c3d25 feat(parser): add ToRemind method to Task for Remind-compatible string output
Implements Task.ToRemind(), which generates a Remind-formatted string
including due date, metadata, projects, contexts, completion status, and
priority.
2025-11-25 17:15:28 +01:00
4b44c012e6 fix(parser): exclude @todo from contexts and support quoted location metadata
- Prevents '@todo' from being added to task contexts.
- Adds parsing for location metadata with quoted values, allowing
  spaces.
2025-11-25 17:14:48 +01:00
5ef3057d98 refactor(parser): simplify ParseLine logic for completed, priority, and date parsing
- Refactor ParseLine to use token-based parsing for completed status,
  priority, and dates.
- Improve handling of priority and creation date for both completed and
  incomplete tasks.
2025-11-25 00:41:36 +01:00
57ac41ff72 fix(parser): correct priority calculation for 'Z' to return 0
Previously, the priority calculation did not handle 'Z' correctly,
resulting in a non-zero value. Now, 'Z' returns 0 as intended, and the
step size is calculated for a linear scale.
2025-11-25 00:40:16 +01:00
20e327d9dd refactor(parser): translate comments from Italian to English 2025-11-24 23:40:31 +01:00
76f33f281c chore(docs): move SPECS.md and description.svg to docs/ directory 2025-11-24 23:34:57 +01:00
9cfc9abc93 feat: initial parser for todo.txt format with spec and test cases
- Add parser for todo.txt tasks supporting priority, dates, projects,
  contexts, and key:value metadata
- Include full todo.txt format specification (SPECS.md) and visual
  description (description.svg)
- Add sample test.todo.txt file with valid, borderline, and malformed
  cases
- Initialize Go module and main entrypoint for parsing and JSON output
- Add .gitignore for binary artifacts
2025-11-24 23:30:45 +01:00