Replies: 4 comments 3 replies
|
I started with this in #416. If it would be added, I wanted to add exactly this next |
|
What about jumping into $EDITOR from glow? I'm surprised that "v" does not work. |
|
Automatic refresh/reload in Glow for dynamic documents is a useful feature request — particularly for markdown that represents live data (logs, status pages, progress reports). The use case this enables: Implementation approaches: File watcher: Polling fallback: Scroll position preservation: Signal-based refresh: For agent output monitoring: |
|
Auto-refresh for file watching is a natural workflow for documentation writers — edit in one terminal, preview in another. A few ways to achieve this today: With ls docs/*.md | entr -r glow README.md
With watchexec --exts md --watch docs/ -- glow README.mdWith fswatch -o README.md | xargs -n1 -I{} glow README.mdThese all work but have the downside of clearing the terminal and re-rendering from scratch, which can be jarring. A nicer approach would be in-process refresh — glow watches the file itself and re-renders in place when it changes. This is technically more complex (requires a file watcher on the running process) but would give a smooth "live preview" experience. Implementation sketch for a PR: use For AI-generated documentation workflows specifically, live preview is valuable — you're iterating quickly with an LLM generating markdown, and seeing the rendered output in real time helps catch formatting issues. This is a pattern we see increasingly in AI-assisted writing tools. Is the use case primarily for documentation review, or for something like README-driven development? |
Uh oh!
There was an error while loading. Please reload this page.
This may already be a feature that exists and if so I would love to know. I'm using glow to view the markdown of a document I'm working on, and would like to have it reload the document when I save changes to the markdown file. Is there a way to automate this rather than backing out and reopening the file?
All reactions