Clipboard access
Hi,
I've seen you've stated that Android 10 and above doesn't allow access to the clipboard, but it has been working for me in the Texpand app, so they must have found some workaround, not sure what it is though.
Thanks for such a great app, espanso integration is a killer feature!
I'll make sure to check if I can get this working when I start working for the next update 👍
Unfortunately I couldn't find how they have done it. The only workaround I know is to use a sort of a dummy form.
- trigger: :cx
replace: "here is the replacement from cb: {{cxx}}"
vars:
- name: cxx
type: clipboard
in combination with
- trigger: :clip
form: |
[[text]],
form_fields:
text:
multiline: true
will work when you first trigger the dummy form by typing :clip and then on the form text field you can type :cx and then you can submit. As far as I know after android 10, the app MUST be in the FOREGROUND to access the clipboard. While using forms this app is in the foreground, hence this works.
ah, no need, I automated the above trick and it works. will be included in the next release soon.
Let me know if v7.1.0 fixes this!
Yep, I did a test and it seems to be working. Thanks so much!
Will you be adding clipboard to the template variables?
Will do in a future update! :D