6 ms·
(Author here) Feel free to ask any question, I'll be happy to answer them :)
by federicoterzi 6y ago
(Author here)
Feel free to ask any question, I'll be happy to answer them :)
- akvadrako 6y agoHow does this integrate on Linux? I took a minute and couldn't find that information on the website.
- federicoterzi 6y agoEspanso currently supports X11-based linux systems through the X Record Extension [1] and libxdo [2] That said, I'm currently working on another engine based on evdev that could be able to support also Wayland systems. For the linux install see also: https://espanso.org/install/linux/ https://espanso.org/install/linux/ [1]: https://www.x.org/releases/X11R7.6/doc/libXtst/recordlib.html https://www.x.org/releases/X11R7.6/doc/libXtst/recordlib.htm... [2]: https://github.com/jordansissel/xdotool https://github.com/jordansissel/xdotool
- eterps 6y agoAwesome, would love to give it a try as a Wayland user.
- federicoterzi 6y agoThanks! your best bet is to activate notification on the issue I linked before :) I'm currently working on it, the detection part is almost done, I'll need to figure out the best way to inject the text after detecting a match
- Ciantic 6y agoIt'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.
- federicoterzi 6y agoHey, 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 https://github.com/federico-terzi/espanso/tree/dev-1.x
- Tade0 6y agoFor keylogging and mouse/keyboard automation you can use this: https://crates.io/crates/enigo https://crates.io/crates/enigo And this: https://crates.io/crates/device_query/0.2.0 https://crates.io/crates/device_query/0.2.0 respectively.
- flotothemoon 6y agoFirst, 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;"
- federicoterzi 6y agoThanks! I'm currently working on a way to make this possible, but for now you will have to stick with forms :) (or passive mode [1], but I'd advice against that as it's going away in the next version). [1]: https://espanso.org/docs/passive-mode/ https://espanso.org/docs/passive-mode/
- tnorthcutt 6y agoEspanso 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 :)
- federicoterzi 6y agoThanks! 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/ https://hub.espanso.org/ Cons: There is no GUI yet, but we are working on it [1]: https://espanso.org/docs/forms/ https://espanso.org/docs/forms/ [2]: https://espanso.org/docs/matches/ https://espanso.org/docs/matches/
- tnorthcutt 6y agoThanks for the replies! One more question if you're up for it: does Espanso suffer from having secure input disabled? I frequently see this with both aText and Alfred: "Secure input is enabled (by loginwindow)" (aText) & "loginwindow seems to be preventing text expansion by locking secure entry" (Alfred)... with no indication as to how to rectify the situation.
- tnorthcutt 6y agoAh nevermind, I see this when I run `espanso start`: "WARNING: An application is currently using SecureInput and might prevent espanso from working correctly." For anyone else who ends up here with the same problem: this blog post was helpful as it suggested that locking & unlocking my system might remove the lock on secureinput created by loginwindow: https://rakhesh.com/mac/macos-find-app-using-secure-input/ https://rakhesh.com/mac/macos-find-app-using-secure-input/
- federicoterzi 6y ago
- Kaze404 6y agoI seem to have found a bug. When I use the default match ":espanso" on my terminal (Kitty) it gets expanded to "hi there1", while I expect "Hi there!". Seems to work fine on Firefox. Edit: Seems like it's an issue with shifted characters? When I type any trigger and erase, for example ":espanso", I expect the first character to be a colon (:) but instead I get a semi-colon (;). Weird.
- federicoterzi 6y agoThanks for reporting this issue! I'm working on a patch that should solve this problem. In the meanwhile, can you try adding: backend: Clipboard on your default.yml file and see if that helps?
- Kaze404 6y agoWorks perfectly now, thank you :)
- shaicoleman 6y agoSame issue with shift not working under Kitty. (e.g. :DATE trigger produces )@?)#?@)@! ) backend: Clipboard works intermittently for me
- shaicoleman 6y agoIt doesn't detect backspace with non-backspace keys under Linux. I'm using the Colemak keyboard layout, and Caps Lock is mapped to Backspace.
- federicoterzi 6y agoThanks for reporting this issue! I'm currently rewriting the detection mechanism core, so hopefully this problem will be solved in the next version :)