| <<<Back 1 day (to 2020/07/07) | Fwd 1 day (to 2020/07/09)>>> | 20200708 |
Kabouik | Hey #mupdf. I'm using Kakoune to edit markdown files and wrote (with some help) a function that makes kakoune convert the .md file to .pdf every time I save it (https://p.teknik.io/Simple/va1BA) | 12:12.19 |
| Is there a way to tell mupdf to automatically reload (`r` key) a file when a change is detected? I'd like to use mupdf as my live previewer, since it's my pdf viewer for everything else | 12:12.53 |
malc_ | Kabouik: you can use something like: https://github.com/moosotc/llpp/blob/master/misc/llpp.inotify | 12:33.00 |
Kabouik | I found on SO that running `pkill -HUP mupdf` would work too malc_. This seems a lot more minimal, and would be easier to implement in my kakoune's kakrc to even launch the mupdf live preview without leaving the editor | 12:35.21 |
| But I think pkill would only do anything if mupdf is already running | 12:35.51 |
| Do you have any idea? | 12:35.55 |
malc_ | no | 12:36.01 |
Kabouik | For the record, this kind of works: https://p.teknik.io/Simple/6OTcT | 12:58.43 |
| But still needs improvements, as it will open a new mupdf window everytime I save my .md file (since mupdf-gl is called in the first shell block) | 12:59.13 |
| https://p.teknik.io/Simple/euKi0 This works. Two separate commands: one converts on save, the other ones specifically opens a mupdf window to preview the pdf file, and it will reload on change. | 14:03.02 |
| <<<Back 1 day (to 2020/07/07) | Forward 1 day (to 2020/07/09)>>> | |