Hacker News new | past | comments | ask | show | jobs | submit login

Pandoc (or latex) + make + iNotifyWait work really well together for WYSIWYG like editing too:

  watch: $(ALL)
    while true; do \
    clear; \
    make $(WATCH); \
      inotifywait -qr -e close_write .; \
    done
"make watch WATCH=build" will now compile documents on every save. Works well for single documents, collections of documents or entire websites.



I've been using a JS script[1] to watch directories, but this seems neater. Would you mind sharing the whole makefile?

[1] https://gist.github.com/timpulver/0d01285952b97deb70df6104cc...




Applications are open for YC Winter 2020

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: