preview.nvim/lua/preview
Barrett Ruth c1734eec8f
fix: fall back to /tmp for buffers without a backing file
Problem: markdown and gfm presets fail when the buffer has no file on
disk (e.g. unnamed buffer with `ft=markdown`, or a named buffer whose
path doesn't exist yet) because `build_context` passes a nonexistent
path to pandoc and `compile` guards reject empty buffer names.

Solution: `build_context` now detects missing files and redirects
`ctx.file` to `/tmp/{bufnr}-{name}`. `compile` writes buffer contents
to that temp path via `vim.fn.writefile` instead of `:silent! update`.
2026-03-13 08:19:57 -04:00
..
commands.lua fix: lifecycle cleanup and defensive runtime checks (#29) 2026-03-04 14:02:16 -05:00
compiler.lua fix: fall back to /tmp for buffers without a backing file 2026-03-13 08:19:57 -04:00
diagnostic.lua feat: compile notifications and long-running provider feedback (#55) 2026-03-06 14:58:10 -05:00
health.lua feat: rename watch → toggle, auto-compile on start, built-in opener 2026-03-02 23:37:44 -05:00
init.lua fix: fall back to /tmp for buffers without a backing file 2026-03-13 08:19:57 -04:00
log.lua feat: rename 2026-03-02 21:23:40 -05:00
presets.lua feat: compile notifications and long-running provider feedback (#55) 2026-03-06 14:58:10 -05:00
reload.lua fix(reload): bind SSE server to port 0 for OS-assigned port (#21) 2026-03-03 17:46:04 -05:00