Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clipboard access #35

Closed
quintrino opened this issue Sep 17, 2024 · 4 comments
Closed

Clipboard access #35

quintrino opened this issue Sep 17, 2024 · 4 comments

Comments

@quintrino
Copy link

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!

@lochidev
Copy link
Owner

I'll make sure to check if I can get this working when I start working for the next update 👍

@lochidev
Copy link
Owner

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.

lochidev added a commit that referenced this issue Jan 20, 2025
@lochidev
Copy link
Owner

ah, no need, I automated the above trick and it works. will be included in the next release soon.

@lochidev
Copy link
Owner

Let me know if v7.1.0 fixes this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants