Live data from Hacker News

Espanso – Cross-Platform Text Expander Written in Rust

github.com

31–40 of 40 posts

Re: Espanso – Cross-Platform Text Expander Written in Rust

#31

Just installed it and started using. It is timely as I have to fill a number of forms today on government sites so looking forward to using it. What are some best practices you have come up with for reducing the cognitive load for the trigger lifecycle - that is detect the need, come up with one that fits an easy to retrieve mental model? Namespacing obviously comes to mind, and some trigger design should be as confl…

[dead]

Re: Espanso – Cross-Platform Text Expander Written in Rust

#32

Autohotkey is go to on Windows for stuff like this, and its called hotstrings [1]. Hotstrings are much more powerfull. Trigger can for example run arbitrary function. AFAIK on linux, you can run it using wine. [1] https://www.autohotkey.com/docs/v2/Hotstrings.htm

IIUC they can also run arbitrary scripts with Espanso.

Re: Espanso – Cross-Platform Text Expander Written in Rust

#33

Autohotkey is go to on Windows for stuff like this, and its called hotstrings [1]. Hotstrings are much more powerfull. Trigger can for example run arbitrary function. AFAIK on linux, you can run it using wine. [1] https://www.autohotkey.com/docs/v2/Hotstrings.htm

IIUC they can also run arbitrary scripts with Espanso.

Arbitrary scripts, yes. AHK has a dedicated language which has a lot of hotkey stuff in it (hence the name). Other types of scripts are incomparable.

Re: Espanso – Cross-Platform Text Expander Written in Rust

#36
Espanso looks promising but Atext (paid) fits niche very nicely for me.

With atexts gui it makes building new entries easy. I even have a keyboard shortcut to use highlighted text to quickly make a new entry.

I have used it to write emails, make automation's for certain websites that take keyboard shortcuts. I use it to build query searches for certain websites I use frequent (kinda like firefox back in the day).

https://www.trankynam.com/atext/

Re: Espanso – Cross-Platform Text Expander Written in Rust

#37

I love espanso! The cross-platform support is huge (I use it on macOS, windows, and X11 and Wayland-based Linux systems). Moreover, the original creator (Federico) and the current head maintainer to whom he has handed most of the day-to-day (AucaCoyan) are two of the kindest people I have ever come across in open source. All issues and contributors are treated with respect, it really is refreshing to feel so welcome…

Being willing to listen and engage with people on a project goes so far!

Re: Espanso – Cross-Platform Text Expander Written in Rust

#38
post #23

This is basically what Data Detectors natively does in macOS, is it?

No, not especially. What Espanso does is watch keystrokes, looking for the specific combinations in the config to then expand the shortcut to whatever it's defined to do. There is similar functionality built into macOS/iOS but it's _far_ less featured.

In System Settings > Keyboard > Text Input > Text Replacements

Basically, it's a simple replacement tool, which works for some repetitive stuff (i.e. my name, my email address, my phone number, or a short string for closing out emails). Epsanso, and tools like it, do so much more.

Edit to add: Data detectors on macOS/iOS look for existing strings of text that you can then get more contextual options for. Things like dates and times might open up a calendar view, phone numbers might offer a menu to dial it, or addresses might offer the ability to open a map for it. Absolutely useful, but not the same thing.

Re: Espanso – Cross-Platform Text Expander Written in Rust

#39
post #27

I think the problem Espanso is trying to solve should be addressed by GUI toolkits, like GTK, QT, etc. Otherwise, living with an authorized keylogger in our system in order to introduce unicode characters seems overkill.

Yeah, I don't have my KDE setup in front of me right now, but I feel like there is something in the keyboard settings that could emulate at least a subset of Epsanso's features. I know on macOS/iOS there is text replacements which are a simple replacement mechanism, without the ability to insert variables.

I agree, though, seems like a ripe piece of low-hanging fruit that could be better integrated and safer. Even if the lower level stuff just hands it off to a dedicated tool that handles the replacement text, at least the OS/WM should be the one watching the keys.

Re: Espanso – Cross-Platform Text Expander Written in Rust

#40
post #14

I’m using it on KDE for quite some time now. It’s very useful, but sometimes types too fast and eats keystrokes. Other than that it’s flawless. Can recommend to anyone.

Can you not configure the text speed?

Looks like it can add some delays. Currently testing the new configuration.
Post reply on HN