Skip to content

feat(watch): adopt new markdown files under a watched directory - #126

Merged
scott merged 1 commit into
mainfrom
feat/123-watch-directory
Sep 15, 2026
Merged

scott merged 1 commit into
mainfrom
feat/123-watch-directory

Conversation

@scott

@scott scott commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • gander watch <dir>, gander share --watch <dir>, and gander --watch <dir> register a directory watch with the runner (dir-share / dir-local).
  • New matching .md files are onboarded automatically: hosted shares via CreateShare plus a child file watch, or local previews under 127.0.0.1:7821/w/<id>.
  • Directory-adopted files never open a browser. URLs are logged and sent as OS notifications.
  • Flags: --existing, --no-recursive, --glob, --yes (required when --existing would onboard more than 50 files). Always skip .git / node_modules / .obsidian / vendor / hidden dirs, editor temp files, and empty files. Cap 20 new files per minute per directory watch.
  • gander stop <dir> stops adoption only; child file watches keep live-updating. Resume restores dir watches first, then files, and skips unknown kinds.

Related Issue

Closes #123

Testing

  • go test ./...
  • go vet ./...
  • go build ./...

Notes

@scott
scott merged commit 90c07f0 into main Sep 15, 2026
1 check passed
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.

feat: gander watch <dir> auto-onboards new markdown

1 participant