diff --git a/.config/helix/scripts/typst-zathura.fish b/.config/helix/scripts/typst-zathura.fish index 6fff70e0..2730e841 100755 --- a/.config/helix/scripts/typst-zathura.fish +++ b/.config/helix/scripts/typst-zathura.fish @@ -1,4 +1,12 @@ #!/usr/bin/env fish set -l src (path resolve $argv[1]) -set -l targ (string replace --filter '.typ' '.pdf') +# echo $src +# string replace +set -l targ (string replace --filter '.typ' '.pdf' $src) +if test -f "$targ" + + echo $targ +else + echo no file +end