Compare commits

...

2 Commits

3 changed files with 28 additions and 0 deletions

View File

@ -25,3 +25,9 @@ function pyenv; source ~/dox/proj/ref/venv/bin/activate.fish; end
# bootleg meme feed
function arf; cd ~/med/memes/arf; mpv --no-resume-playback (ls | shuf); end
# aliases for logs and notes
function xx; $EDITOR ~/dox/not/xx.tsv; end
function dr; $EDITOR ~/dox/not/dr.txt; end
function bk; $EDITOR ~/dox/not/bk.txt; end
function rem; $EDITOR ~/dox/not/rem; end

View File

@ -120,9 +120,22 @@ nnoremap <silent> ZF :qa<cr>
function EditFig()
let figure_fname = expand('<cfile>')
exec "silent !typst-figure " .. figure_fname
vsp
exec "term inkscape-shortcut-manager"
quit
endfunc
:nnoremap <silent><leader>ff :call EditFig()<cr>
" compile typst doc on write
function TypstWatch()
vsp
vertical resize 50
exec 'terminal ' .. 'typst watch ' .. expand("%:t")
exec "norm \<c-w>h"
endfunc
:nnoremap <silent><leader>fc :call TypstWatch()<cr>
" Plugins
" Run PlugInstall if there are missing plugins

View File

@ -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