What does HackerNews think of entr?
A utility for running arbitrary commands when files change. Uses kqueue(2) or inotify(7) to avoid polling. entr responds to file system events by executing command line arguments or by writing to a FIFO. entr was written to provide to make rapid feedback and automated testing natural and completely ordinary.
This was a project I did for my personal use case. But I haven't been using it since years. I'd recommend [entr](https://github.com/clibs/entr) for the use case watchman was to serve.
Today, entr allows you to restart a command when a file changes.
A web server allows you to serve local files to your browser.
If you use npm, lots of libs allow you to serve your web ui, and make the browser reload the page when something has changed.
But this is tied to npm, and even to the framework you use (eg: angular has its own way).
It would be cool if we could have a way to do that for any tool/language. Like, could a tool tell the browser to reload, because that tool was restarted by entr due to a file change?
This would allow live preview on any kind of files, or maybe even program output in the browser without having to press F5 every time.
time pystitcher --verbose complete.md output.pdf
[2021-12-31 00:00:48] INFO:pystitcher.stitcher:Deleting temporary files
real 2.244 user 2.160 sys 0.063 pcpu 99.07
I've run it against entr[0] for live-recompilations, and it was pretty good.