4 ms·
Interesting, I built a similar system for my Vim setup that I slowly adopted over time. I realised that semicolons are almost always followed by whitespace or n
by alpaca128 6y ago
Interesting, I built a similar system for my Vim setup that I
slowly adopted over time. I realised that semicolons are almost
always followed by whitespace or newlines in normal use, so I
started defining a whole range of shortcuts with `;` as a
prefix. As the key is directly on the homerow it's also quick
and easy to use.
For example I have `;out` defined to expand to the correct
stdout print function depending on the programming language used
in that file.
Espanso looks like it's a great way to expand the same concept
to the whole system, albeit (I'm guessing) without the
contextual info a text editor can provide.
- federicoterzi 6y ago> Espanso looks like it's a great way to expand the same concept to the whole system, albeit (I'm guessing) without the contextual info a text editor can provide. That's right, out of the box espanso does not have any access to the contextual information, but with some "script gymnastics" [1] you can do plenty of interesting things :) [1]: https://espanso.org/docs/matches/#shell-extension https://espanso.org/docs/matches/#shell-extension