diff --git a/.config/kak/kakrc b/.config/kak/kakrc index 40a11954..587edd8d 100644 --- a/.config/kak/kakrc +++ b/.config/kak/kakrc @@ -94,9 +94,13 @@ map -docstring 'case insensitive backward extend-search' global user '' L" map -docstring 'Extend to file end' global user n "gjl" -define-command typst %{ +define-command -docstring %{ + Spawns a Zathura pdf preview and Typst watcher for the currently open Typst file +} typst %{ nop %sh{ - {"$kak_config/scripts/kak-typ-zathura.fish" -k -w "$kak_buffile" "$kak_client_pid"} > /dev/null 2>&1 < /dev/null & + { + "$kak_config/scripts/kak-typ-zathura.fish" -k -w "$kak_buffile" "$kak_client_pid" + } > /dev/null 2>&1 < /dev/null & } }