AutoYADM commit: 2025-04-28 17:00:05

This commit is contained in:
Daniel Fichtinger 2025-04-28 17:00:05 -04:00
parent 94e91900e8
commit 806267f147

View file

@ -112,6 +112,8 @@ end
# absolute path of %{buffer_name} file
set -l src (path resolve $argv[1])
# echo $src
# return 0
# exit if not a typst file
if not string match -q '*.typ' $src
qecho "$(path basename $src) is not a Typst file!"
@ -119,8 +121,11 @@ if not string match -q '*.typ' $src
end
# change abs path to pdf extension
set -l targ (string replace '.typ' '.pdf' $src)
echo $targ
# get pdf target's base name
set -l base (path basename --no-extension $src).pdf
echo $base
return 0
# if a suitable pdf exists in the same dir, open it
if test -f "$targ"