News for hackers. Stuff that matters.
Re:Show HN: Espanso: detect a typed keyword and replace it w... by Ciantic on Wednesday February 03, 2021 @07:24AM (#26012980)
It's very nice that this is done with Rust, because I'd love to get rid of AutoHotkey in Windows (which also trivally support this kind of expansions). Do you plan to release individual components as crates?

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.

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.