Live data from Hacker News

Show HN: Espanso: detect a typed keyword and replace it while you're typing

espanso.org

21–30 of 77 posts

Re: Show HN: Espanso: detect a typed keyword and replace it while you're typing

#22
post #21

Cool. Any thoughts on how it compares to Clavier? https://gryder.org/software/clavier-plus/?lang=en

Thanks! It's the first time I get to see Clavier so I'm not very prepared, but some differences could be:

1. Espanso is cross-platform, so you create your config once and then run it on all your machines 2. Clavier comes with a GUI, but espanso does not (yet) 3. Espanso is highly flexible thanks to scripts [1] and forms [2]

1: https://espanso.org/docs/matches/#shell-extension 2: https://espanso.org/docs/forms/

Re: Show HN: Espanso: detect a typed keyword and replace it while you're typing

#23
post #12

(Author here) Feel free to ask any question, I'll be happy to answer them :)

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.

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.

Re: Show HN: Espanso: detect a typed keyword and replace it while you're typing

#24
I used Espanso a while back on my Win 10 machine. It was nice, but I got noticeable lag compared to the smooth replacing of AutoHotKey (AHK also uses less resources).

I might switch to Espanso in the future though, given that AHK is not available on Linux.

Re: Show HN: Espanso: detect a typed keyword and replace it while you're typing

#25
post #24

I used Espanso a while back on my Win 10 machine. It was nice, but I got noticeable lag compared to the smooth replacing of AutoHotKey (AHK also uses less resources). I might switch to Espanso in the future though, given that AHK is not available on Linux.

I'm sorry you experienced this problem! How many snippets were you using? AHK is indeed a wonderful tool, and because it only supports Windows, it can apply some optimizations that are not available on other platforms. I'm currently rewriting the core, so things might get a bit faster in the future :)

Re: Show HN: Espanso: detect a typed keyword and replace it while you're typing

#26

(Author here) Feel free to ask any question, I'll be happy to answer them :)

First, this looks awesome, will be giving this a try. Is there a way to pass (inline) arguments to the expansion? Or would I use a form for that?

e.g. ":member(test)" => "private test;"

Re: Show HN: Espanso: detect a typed keyword and replace it while you're typing

#27
post #10

Looks really cool, but isn't this literally a key logger. I prefer this to be built in to maybe vs code, at least then I won't have to worry about accidentally capturing my passwords

The world is a little bit bigger than VSCode. Believe it or not some of us don’t even use VSCode.

This is meant to be a replacement to AHK (which is Windows only), not a text editor snippet expander.

Re: Show HN: Espanso: detect a typed keyword and replace it while you're typing

#29

(Author here) Feel free to ask any question, I'll be happy to answer them :)

Espanso looks pretty cool! I’m curious if you can share compelling reasons to switch from e.g. Alfred’s snippets functionality (on macOS)?

I’ve used aText for a long time, then semi-recently moved most things to Alfred, but I’m curious about Espanso :)

Re: Show HN: Espanso: detect a typed keyword and replace it while you're typing

#30

(Author here) Feel free to ask any question, I'll be happy to answer them :)

Espanso looks pretty cool! I’m curious if you can share compelling reasons to switch from e.g. Alfred’s snippets functionality (on macOS)? I’ve used aText for a long time, then semi-recently moved most things to Alfred, but I’m curious about Espanso :)

Thanks! First things that come to my mind: 1. Espanso is free and open-source 2. If you use espanso and then move to Linux or Windows, the transition is flawless 3. It support Forms [1] and it can be extended in many ways [2] 4. You can easily collaborate with others and share snippets on the Hub: https://hub.espanso.org/

Cons: There is no GUI yet, but we are working on it

[1]: https://espanso.org/docs/forms/ [2]: https://espanso.org/docs/matches/

Post reply on HN