Re:Show HN: Espanso: detect a typed keyword and replace it w...
by federicoterzi on Wednesday February 03, 2021 @07:34AM
(#26013062)
Hey,
It's unlikely that espanso will become a library anytime soon, but I'm currently refactoring the core into separate crates to follow a more modular "workspace" approach. So if you want to write your own standalone program, you could just pick the modules you need!
Started the refactor a few days ago so it's still in the early stage, but it's happening here: https://github.com/federico-terzi/espanso/tree/dev-1.x
Re:Show HN: Espanso: detect a typed keyword and replace it w...
by Tade0 on Wednesday February 03, 2021 @08:14AM
(#26013299)
For keylogging and mouse/keyboard automation you can use this:
https://crates.io/crates/enigo
And this:
https://crates.io/crates/device_query/0.2.0
respectively.
I don't see myself using single program to do just expansions, but instead building my own program with Rust that has all sort of shortcuts like in AutoHotkey. I could use your expansion code as crate instead.