diff --git a/src/.config/nvim/init.vim b/src/.config/nvim/init.vim index adfa398..09cd736 100755 --- a/src/.config/nvim/init.vim +++ b/src/.config/nvim/init.vim @@ -120,9 +120,22 @@ nnoremap ZF :qa function EditFig() let figure_fname = expand('') exec "silent !typst-figure " .. figure_fname + vsp + exec "term inkscape-shortcut-manager" + quit endfunc :nnoremap ff :call EditFig() + +" compile typst doc on write +function TypstWatch() + vsp + vertical resize 50 + exec 'terminal ' .. 'typst watch ' .. expand("%:t") + exec "norm \h" +endfunc +:nnoremap fc :call TypstWatch() + " Plugins " Run PlugInstall if there are missing plugins diff --git a/src/.local/bin/inkscape-shortcut-manager b/src/.local/bin/inkscape-shortcut-manager new file mode 100755 index 0000000..203eeb2 --- /dev/null +++ b/src/.local/bin/inkscape-shortcut-manager @@ -0,0 +1,9 @@ +#!/bin/sh +# wrapper to have a single instance of inkscape-shortcut-manager running + +if ! pgrep -f inkscape-shortcut-manager/main.py; then + # really hacky hardcoding of path here + # https://github.com/dogeystamp/inkscape-shortcut-manager + # clone this and point to its main.py + python3 ~/dox/proj/inkscape-shortcut-manager/main.py +fi