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.

Language: C

Hello everyone, I am the author of this project. Not sure what generated interest in this.

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.

For those use-cases I use entr (https://github.com/clibs/entr). In what sense does watchman differ to it? Didn't see anything related to this at first glance :-)
Find a way with entr[0] and an http server to tell the browser to reload the currently viewed file if it changes.

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.

[0]: https://github.com/clibs/entr

I've tested it against a 800 page compilation and didn't face any issues : https://github.com/captn3m0/pdp-book. Takes ~2 seconds for a fresh build on my system right now.

    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.

[0]: https://github.com/clibs/entr

What about using entr[1] instead? I've had great success using it for rebuilding ctags on file changes.

[1]: https://github.com/clibs/entr