nvim: add inkscape-shortcut-manager as submodule

This commit is contained in:
dogeystamp 2023-07-11 22:21:19 -04:00
parent 9fcc33f76c
commit d2c8b4fa60
5 changed files with 14 additions and 10 deletions

3
.gitmodules vendored
View File

@ -4,3 +4,6 @@
[submodule "src/.local/bin/pyinstantref"] [submodule "src/.local/bin/pyinstantref"]
path = src/.local/bin/pyinstantref path = src/.local/bin/pyinstantref
url = https://github.com/dogeystamp/pyinstantref url = https://github.com/dogeystamp/pyinstantref
[submodule "src/.local/bin/inkscape-shortcut-manager"]
path = src/.local/bin/inkscape-shortcut-manager
url = https://github.com/dogeystamp/inkscape-shortcut-manager

View File

@ -122,6 +122,7 @@ xsel
# inkscape shortcut manager # inkscape shortcut manager
python-xlib python-xlib
pdf2svg
chromium chromium
cargo cargo

View File

@ -7,7 +7,7 @@ function EditFig()
let figure_fname = expand('<cfile>') let figure_fname = expand('<cfile>')
exec "silent !typst-figure " .. figure_fname exec "silent !typst-figure " .. figure_fname
vsp vsp
exec "term inkscape-shortcut-manager" exec "term inkscape-shortcut-single"
quit quit
endfunc endfunc

View File

@ -1,9 +0,0 @@
#!/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

@ -0,0 +1 @@
Subproject commit 04eeef7804c11374512e9347ab6996be1dd64a46

View File

@ -0,0 +1,8 @@
#!/bin/sh
# hacky wrapper to have a single instance of inkscape-shortcut-manager running
if ! pgrep -u "$USER" -f inkscape-shortcut-manager/main.py; then
# https://github.com/dogeystamp/inkscape-shortcut-manager
# clone this and point to its main.py
python3 ~/.local/bin/inkscape-shortcut-manager/main.py
fi