Skip to content

Support for unicode in using pyclip#38

Open
stefan-matic wants to merge 1 commit intoStreamController:mainfrom
stefan-matic:main
Open

Support for unicode in using pyclip#38
stefan-matic wants to merge 1 commit intoStreamController:mainfrom
stefan-matic:main

Conversation

@stefan-matic
Copy link

@stefan-matic stefan-matic commented Oct 31, 2025

Hello,

Unicode characters like € were output as "u20ac" instead of the actual symbol.
The current unicode logic didn't paste my unicode characters like expected.

I opted out for using pyclip instead of the CTRL+SHIFT+U because it's also a common keybind in several of my apps.

Tested on NixOS, but should work pretty much anywhere.

Now I can finally bind a key for ¯\_(ツ)_/¯

Let me know if you want me to adjust something, or feel free to close the PR if pyclip is not something you want in the codebase.


from loguru import logger as log
import time
import pyclip
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because this plugin doesn't have a backend, this will require pyclip to be installed in the root StreamController plugin. Is there a way to accomplish this same functionality without using a third party implementation?

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

Successfully merging this pull request may close these issues.

2 participants