Skip to content

CLI list ignores .md2do.json markdown settings; VS Code completion date uses UTC and brace format #75

Description

@smuemd

Thanks for md2do! Three small issues found with @md2do/cli 0.8.0 and md2do-vscode 0.2.4:

  1. list ignores markdown.pattern / markdown.root from .md2do.json. --pattern has a default ('**/*.md'), so options.pattern is always defined and overrides the config; root always comes from --path/cwd (packages/cli/src/commands/list.ts:91–98).
  2. Completion date is computed in UTC. new Date().toISOString().split('T')[0] (toggleComplete.ts:41, treeActions.ts:36) writes the previous day between 00:00 and 02:00 in UTC+2. Ticking a task on 2026-09-28 01:30 CEST wrote {completed:2026-09-27}. Local date would be expected.
  3. Option to keep the bracket form when completing. The extension always writes {completed:…}. A setting to write [completed: YYYY-MM-DD] would help users who stay on the legacy bracket syntax (which also works in SilverBullet).

Happy to send a PR for 1 and 2 if welcome.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions