From f36cf2e41078f25f885f5f0b779c00809792a61e Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Tue, 22 Apr 2025 14:10:13 -0400 Subject: [PATCH] AutoYADM commit: 2025-04-22 14:10:12 --- .config/helix/scripts/typst-zathura.fish | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.config/helix/scripts/typst-zathura.fish b/.config/helix/scripts/typst-zathura.fish index 231e65f5..7beaffbc 100755 --- a/.config/helix/scripts/typst-zathura.fish +++ b/.config/helix/scripts/typst-zathura.fish @@ -17,12 +17,14 @@ function find_pdf end end +# only return status 1 if -q not set if set -q _flag_q set ret 1 else set ret 0 end +# only echo if -q not set function qecho if not set -q _flag_q echo $argv[1] @@ -32,7 +34,7 @@ end set -l src (path resolve $argv[1]) # echo $src # string replace -if not string match -q '.typ' $src +if not string match -q '*.typ' $src qecho "$(path basename $src) is not a Typst file!" return $ret end