Scan
Implementation: internal/scan/scan.go:WalkMarkdown.
- Matches
*.mdcase-insensitively, returns sorted paths. .gitalways skipped, even with--hidden.- Hidden files/dirs (
.-prefixed) skipped unless--hidden(root itself exempt). - Symlinks never followed; symlinked files/dirs skipped (avoids loops).
Limit > 0truncates after sort (note: applies to discovery, distinct from--limiton results).RespectGitignoreis currently accepted but ignored (scan.go:31TODO) —--no-ignoreis a no-op until implemented. See the Roadmap.
See also: CLI for the --hidden / --no-ignore / --root flags, and Architecture for where scan fits in the pipeline.