AutoYADM commit: 2025-05-10 14:43:08
This commit is contained in:
parent
469ccb00c1
commit
affb9e052a
1 changed files with 11 additions and 4 deletions
|
@ -14,12 +14,19 @@ count "$contents"
|
||||||
if test "$cmd" = inline
|
if test "$cmd" = inline
|
||||||
# if there's more than 1 newline, it
|
# if there's more than 1 newline, it
|
||||||
# has to be linewise
|
# has to be linewise
|
||||||
set -l newlines (string split \n "$contents" | count)
|
set -l lines (string split -n \n "$contents")
|
||||||
echo $newlines
|
set -S lines
|
||||||
echo \'"$(string replace \n → "$contents")"\'
|
|
||||||
|
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
|
else if test "$cmd" = linewise
|
||||||
|
# test if the last line has a
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
echo paste-util
|
# echo paste-util
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue