Writing a Book with Pandoc, Make, and Vim
keleshev.com
Writing a Book with Pandoc, Make, and Vim
1–10 of 61 posts
Re: Writing a Book with Pandoc, Make, and Vim
#2 ls | entr make
And whenever you save a change, the build is triggered and the preview is updated.Re: Writing a Book with Pandoc, Make, and Vim
#3To emulate the live preview, there is a neat piece of software called entr[1], from their main page, you can do something like: ls | entr make And whenever you save a change, the build is triggered and the preview is updated. [1]: http://eradman.com/entrproject/
watchexec make
By default, watchexec will filter out changes in files based on `.gitignore`.Re: Writing a Book with Pandoc, Make, and Vim
#4I've signed up for updates, looking forward to the release!
Re: Writing a Book with Pandoc, Make, and Vim
#5To emulate the live preview, there is a neat piece of software called entr[1], from their main page, you can do something like: ls | entr make And whenever you save a change, the build is triggered and the preview is updated. [1]: http://eradman.com/entrproject/
The pipeline approach here is interesting, but it seems you'd be on your own for filtering out changes in the build directory, etc. I typically use watchexec [1] for this. watchexec make By default, watchexec will filter out changes in files based on `.gitignore`. [1]: https://github.com/watchexec/watchexec
ls *.md | make
Will only trigger the build if a md file is modified, which is what I think the author is interested in.Re: Writing a Book with Pandoc, Make, and Vim
#6 ls ./presentation.md |entr -c bash -c "pandoc --pdf-engine=xelatex --toc -N presentation.md -t beamer -o presentation.pdf; killall -HUP mupdf"
this would reload the pipeline and update the content of the pdf output. easy as 1-2-3 (no Makefile though which would be another step).Re: Writing a Book with Pandoc, Make, and Vim
#7Re: Writing a Book with Pandoc, Make, and Vim
#8Re: Writing a Book with Pandoc, Make, and Vim
#9>My first programming environment was Turbo Pascal, and this is exactly how the cursor works there, which I grew accustomed to.
Holy shit! What a rush of memories reading that unlocked :)