mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
feat: Add support for uploading clipboard images and text to chat
This commit is contained in:
parent
17038f30f2
commit
a94b871991
1 changed files with 1 additions and 1 deletions
|
@ -898,7 +898,7 @@ class Commands:
|
||||||
return text
|
return text
|
||||||
|
|
||||||
def cmd_clipboard(self, args):
|
def cmd_clipboard(self, args):
|
||||||
"Add content from the clipboard to the chat (supports both text and images)"
|
"Add image/text from the clipboard to the chat (optionally provide a name for the image)"
|
||||||
try:
|
try:
|
||||||
# Check for image first
|
# Check for image first
|
||||||
image = ImageGrab.grabclipboard()
|
image = ImageGrab.grabclipboard()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue