From c6b5f197092c9f209690e04d0de41d3bdfd77901 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Tue, 22 Apr 2025 13:25:13 -0400 Subject: [PATCH] AutoYADM commit: 2025-04-22 13:25:13 --- .config/helix/config.toml | 2 ++ .config/helix/scripts/typst-zathura.fish | 4 ++++ 2 files changed, 6 insertions(+) create mode 100755 .config/helix/scripts/typst-zathura.fish diff --git a/.config/helix/config.toml b/.config/helix/config.toml index c1bc8944..1372fab1 100644 --- a/.config/helix/config.toml +++ b/.config/helix/config.toml @@ -182,6 +182,8 @@ C-u = ["page_cursor_half_up", "align_view_center"] # typst [keys.normal.space.l.t] +# open pdf preview +p = ':sh ~/.config/helix/scripts/typst-zathura.fish %{buffer_name}' # git stuff [keys.normal.space.g] diff --git a/.config/helix/scripts/typst-zathura.fish b/.config/helix/scripts/typst-zathura.fish new file mode 100755 index 00000000..6fff70e0 --- /dev/null +++ b/.config/helix/scripts/typst-zathura.fish @@ -0,0 +1,4 @@ +#!/usr/bin/env fish + +set -l src (path resolve $argv[1]) +set -l targ (string replace --filter '.typ' '.pdf')