From affb9e052aff354b45a4444e0d325507ce09b1ac Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Sat, 10 May 2025 14:43:09 -0400 Subject: [PATCH] AutoYADM commit: 2025-05-10 14:43:08 --- .config/helix/scripts/paste-util.fish | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.config/helix/scripts/paste-util.fish b/.config/helix/scripts/paste-util.fish index 281466fc..bc67f1db 100755 --- a/.config/helix/scripts/paste-util.fish +++ b/.config/helix/scripts/paste-util.fish @@ -14,12 +14,19 @@ count "$contents" if test "$cmd" = inline # if there's more than 1 newline, it # has to be linewise - set -l newlines (string split \n "$contents" | count) - echo $newlines - echo \'"$(string replace \n → "$contents")"\' + set -l lines (string split -n \n "$contents") + set -S lines + + printf "%s" "$(string join \n "$lines")" + # if test "$newlines" -eq 1 + # printf "%s" (string trim --chars \n "$contents") + # else + # printf "%s" "$contents" + # end else if test "$cmd" = linewise + # test if the last line has a end -echo paste-util +# echo paste-util