Keyboard icon indicating copy to clipboard operation
Keyboard copied to clipboard

Images in clipboard

Open deniskincses opened this issue 1 year ago • 6 comments

Checklist

  • [X] I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • [X] I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • [X] I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • [X] I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • [X] This issue contains only one feature request.
  • [X] I have read and understood the contribution guidelines.
  • [ ] I optionally donated to support the Fossify mission.

Feature description

Image preview of the copied images in clipboard, when clicked it would paste said image

Why do you want this feature?

Since every past Android keyboard that I've used has an image clipboard feature (like Swiftkey and Gboard), I would like to see one on this keyboard too. I've been more privacy focused these last months and It's really saddening when I first used this that it doesn't have this feature, and it is a feature I had used everyday, and would guess for others

Additional information

No response

deniskincses avatar Aug 31 '24 22:08 deniskincses

Its been year is there any development for this feature ?

akashsriramganapathy avatar Nov 02 '25 02:11 akashsriramganapathy

It is still planned, but no progress.

naveensingh avatar Nov 02 '25 02:11 naveensingh

I have started work on this on my fork. My current plan is to treat image clipboards as ephemeral content since image data on the clipboard is represented as a URI to a tmp file, and in my experience it is unusual to want to repeatedly paste the same image. If you have any specific guidelines for how you want/don't want this implemented for it to be eligible for merging, please let me know @naveensingh

modest-mycelium avatar Nov 10 '25 07:11 modest-mycelium

Good to know. It should work similarly to other popular apps, and we can tweak as needed once you raise a PR.

General contribution guidelines are at https://github.com/FossifyOrg/General-Discussion#contributing-code.

naveensingh avatar Nov 10 '25 07:11 naveensingh

Just checked Samsung keyboards implementation and apparently they do save image clipboards to the clipboard history so I'll add that to this implementation as well.

modest-mycelium avatar Nov 10 '25 13:11 modest-mycelium

@naveensingh I've surfed the web, scoured the documentation, and I still can't seem to figure out how to get past this bug. I created a ContentProvider in order to send the image content to the input, but I can't seem to get external apps to find the provider, so it can't ever resolve the content URI that I send when I use commitContent. I'm new to Android dev so maybe I'm missing something really obvious, was hoping you'd have some insight. I have a pastebin that contains more details, and I just committed my latest changes to my feature branch.

What seems especially strange about this is that the provider does exist (constructor and onCreate methods are run) and when I use the contentResolver to get the MIME type at the very same content URI that I send to commitContent it successfully gets the MIME type of the current clipboard, indicating that the provider is successfully processing the URI.

modest-mycelium avatar Nov 12 '25 03:11 modest-mycelium