From b20c052589291f863fe7fa8120604ad35b934e5a Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Thu, 30 Nov 2023 14:47:22 +0100 Subject: [PATCH] Fix pdf with spaces --- nushell/config/aliases.nu | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nushell/config/aliases.nu b/nushell/config/aliases.nu index 89cc789..7432231 100644 --- a/nushell/config/aliases.nu +++ b/nushell/config/aliases.nu @@ -94,7 +94,9 @@ alias v = nvim alias :q = exit # evince in background -alias pdf = pueue add evince +def pdf [arg: string] { + pueue add evince ($arg | str replace ' ' '\ ') +} # ripgrep alias rg = rg -uu