diff --git a/src/.config/zathura/zathurarc b/src/.config/zathura/zathurarc index 30a05fa..b8207cd 100644 --- a/src/.config/zathura/zathurarc +++ b/src/.config/zathura/zathurarc @@ -1,6 +1,3 @@ -# might break things, but more secure -set sandbox strict - set statusbar-home-tilde true # make things fit better @@ -27,3 +24,5 @@ set selection-clipboard clipboard map exec copy_ref map exec "copy_ref --section" + +map ,fr exec "open_typ.sh $FILE" diff --git a/src/.local/bin/open_typ.sh b/src/.local/bin/open_typ.sh new file mode 100755 index 0000000..5887022 --- /dev/null +++ b/src/.local/bin/open_typ.sh @@ -0,0 +1,4 @@ +#!/bin/sh +# opens corresponding .typ to current .pdf + +st -e nvim $(printf "%s/%s.typ" $(dirname "$1") $(basename -s .pdf "$1")) diff --git a/src/.local/bin/pyinstantref b/src/.local/bin/pyinstantref index 31b4605..0135f1e 160000 --- a/src/.local/bin/pyinstantref +++ b/src/.local/bin/pyinstantref @@ -1 +1 @@ -Subproject commit 31b4605b548e0e637b570f532be143b7eb91d553 +Subproject commit 0135f1eb4f7f0c2c200b76ea80e4ccf1c8169797