AutoYADM commit: 2025-06-08 23:04:49

This commit is contained in:
Daniel Fichtinger 2025-06-08 23:04:49 -04:00
parent 9c499a221b
commit 13998f3066

View file

@ -4,6 +4,13 @@ declare-option -docstring %{
declare-option int clip_selcount 0
define-command -hidden clip-trim %{
try %{
execute-keys <a-k>\n<ret>
execute-keys bjGjd
}
}
define-command -docstring %{
clip-copy [-split]: copy selections to system clipboard
Set the clipboard_copy_cmd option to change the command
@ -28,8 +35,9 @@ define-command -docstring %{
# append a newline
# delete extra newlines
# select all, pipe to copy cmd
echo '"a<a-P><a-K>\n<ret>a<ret><esc>gjd%<a-|><ret>'
printf 'gj:try %%{ exec <a-k>\\n<ret> }'
echo '"a<a-P><a-K>\n<ret>a<ret><esc>'
echo 'gj: clip-trim<ret>'
echo '%<a-|><ret>'
else
# paste all, select all, pipe to copy cmd
echo '"a<a-P>%<a-|><ret>'
@ -39,7 +47,7 @@ define-command -docstring %{
fi
}
# clean up
delete-buffer
# delete-buffer
}
}