feat: Add /copy command to copy last assistant message

This commit is contained in:
Paul Gauthier (aider) 2024-09-27 14:25:22 -07:00
parent 7d79dd00af
commit 11db5d95a0

View file

@ -1040,7 +1040,8 @@ class Commands:
return text
def cmd_paste(self, args):
"Paste image/text from the clipboard into the chat (optionally provide a name for the image)"
"""Paste image/text from the clipboard into the chat.
Optionally provide a name for the image."""
try:
# Check for image first
image = ImageGrab.grabclipboard()