Major changes
This week I introduced a couple of great features proposed by the community:
Please note that at this point you should consider both of these features as
experimental and be prepared for some changes.
I highly suggest you to open an issue if you encounter any problem or have suggestions
on ways to improve them.
Cursor Hints
Originally proposed by @cambid in #92, espanso now supports cursor hints in matches
to move the cursor on the given position after the expansion.
You just need to add $|$
in the replace
clause where you want the cursor to be
positioned afterwards. For example:
- trigger: ":div"
replace: "<div>$|$</div"
If you now type :div
, espanso will expand the match and put the cursor between the tags.
Documentation: https://espanso.org/docs/matches/#cursor-hints
Word Triggers
Originally proposed by @timorunge in #82, espanso now supports word matches, a way
to define matches that are expanded only when surrounded by word separators, such as
spaces or commas.
This makes possible to use espanso as an autocorrection tool for typos. For example:
Let's say you occasionally type ther
instead of there
. Before this release,
you could have used espanso like this:
- trigger: "ther"
replace: "there"
This would correctly replace ther
with there
, but it also has the problem of expanding
other
into othere
, making it unusable.
With word triggers you can now add the word: true
property to a match, telling espanso
to only trigger that match if surrounded by word separators. So in this case it becomes:
- trigger: "ther"
replace: "there"
word: true
At this point, espanso will only expand ther
into there
when used as a standalone word.
Documentation: https://espanso.org/docs/matches/#word-triggers
Minor changes
- Fix bug that prevented the user to type accents correctly on some keyboard layouts #86.
- Fix espanso detect on macOS #91.
- Fix low resolution icon on macOS status bar thanks to @timorunge #98.
- Add support for Terminator on Linux with Clipboard backend #102.