Skip to content

Normalize title field from visible task text - #1

Open
Farahani1 wants to merge 1 commit into
mainfrom
normalize-title-from-task-text
Open

Normalize title field from visible task text#1
Farahani1 wants to merge 1 commit into
mainfrom
normalize-title-from-task-text

Conversation

@Farahani1

Copy link
Copy Markdown
Owner

Summary

  • Add extract_visible_task_title() to derive the task title from the checkbox text before #task.
  • During normalization, overwrite or add [title:: ...] so it matches that visible task text.
  • Preserve the existing field ordering behavior and unknown-field preservation.

Example

- [ ] do one training session before Ace exam #task ... [title:: reserve one training session before Ace exam]

normalizes to:

- [ ] do one training session before Ace exam #task ... [title:: do one training session before Ace exam]

Notes

No automated test suite was present in the repository, so I validated the change by inspecting the updated normalization logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant