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