-
Notifications
You must be signed in to change notification settings - Fork 143
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
Add delays-characters package #152
Conversation
An Espanso trigger that uses the Python `pynput` library to inject text, *instead* of Espanso. This enables the addition of pauses (sleep), \<Tab> etc, and other key combinations not supported by Espanso.
Added pynput installation instructions.
As this package includes a script, I would be grateful for someone else to cast an eye over it before we merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
Would you mind specifying the minimal python version? (just the one in your computer, no need to be sure of the exact to the bug fix precision)
What do you mean? I have Python 3.10.12. Notes added to README.md. |
and generating an error message to Espanso log if not present. README.md updated to mention Python version.
The package may provide a workaround for some with Issues e.g. espanso/espanso#1321, espanso/espanso#2079. |
except ImportError: | ||
import sys | ||
print("Error: The 'pynput' library is not installed.", file=sys.stderr) | ||
print("Install it using: pip install pynput", file=sys.stderr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this!
Great! then it's 3.10. I want to stay as far as possible from python 2.7 or god forbid earlier versions. |
An Espanso trigger that uses the Python
pynput
library to inject text, instead of Espanso. This enables the addition of pauses (sleep), <Tab> etc, and other key combinations not supported by Espanso.