AutoYADM commit: 2025-05-10 14:43:08

This commit is contained in:
Daniel Fichtinger 2025-05-10 14:43:09 -04:00
parent 469ccb00c1
commit affb9e052a

View file

@ -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