From 27aef5502d576fb9b99c9617c86eb5ad92713195 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Mon, 15 May 2023 13:36:57 +0200 Subject: [PATCH] Update zk preview --- .vimrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index de1cd63..4cc3113 100644 --- a/.vimrc +++ b/.vimrc @@ -482,7 +482,8 @@ au FileType javascript set mps+==:; au BufNewFile,BufRead */.vscode/*.json setlocal filetype=jsonc " Hacky way to pass on active note to script for automated for HTML preview -au BufEnter /home/h/.zk/*.md silent exe '!echo %:t > /home/h/.local/share/nvim/plugged/bro/current-page' +au BufEnter /home/h/.zk/*.md silent exe '!echo % > /home/h/.zk/current-zettel.txt' +au BufEnter /home/h/.zk/*.md silent exe '!cat %:r.html > /home/h/.zk/current-zettel-content.html' " }}}