marp-team / marp-team/marp-cli
Watch mode causes all marp output files to refresh
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3.8k
- Forks
- 194
- Avg merge
- 2h 51m
- Merged PRs (30d)
- 3
Description
Repro: I run the CLI marp command to compile with the --w flag
Result: All open html files generated by marp will continuously refresh.
Problem created: This drains memory and also makes it difficult to look at other files.
Request: Is it possible for the watch mode to only refresh marp output files it is being run in?
Additional Suggestion: It might be a good idea to have a timeout for watch mode - so that it terminates after say, ten minutes of no activity in the watched file.
Thank you for the work you do!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with the CLI's --w flag and multiple open HTML files, then locate the watch-mode handling and output refresh logic. The change should limit refreshes to outputs associated with the watched file; clarify separately whether the suggested inactivity timeout is in scope. Done means unrelated Marp outputs no longer refresh during watch mode.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100