aecreations / clippings

Clippings: an extension for Mozilla Firefox
20 stars 4 forks source link

Add clipboard as placeholder? #446

Open ericpa06 opened 7 months ago

ericpa06 commented 7 months ago

Hello. I end up finding your extension when searching a way to manage prompts and I noticed that it had practically all features I wanted with the exception for being a way to pass the current clipboard content as a placeholder, the same we do it with date, time, user-agent, etc. So for instance:

image

Would copy the current clipboard content plus that phrase "Summarize this text for me."

As far as I know, and as I managed to use the extension I couldn't find this feature. I'm absolutely a noob, but I tried to implement it with with the help some LLMs, again, I'm pretty noob, but it seems to be working. I modified the extension permission to add the ability to read from the clipboard and modified the "_hostClipboardName" function, as well as creating a new placeholder variable $CB.

If you are interested on implementing this code, or if anyone reading this wanted this functionality, I made a little fork that does that

clippings-6.5.3-fork.zip