Delete trigger by word #1654
eugenesvk
started this conversation in
Feature requests and Ideas
Replies: 1 comment 2 replies
-
Just to further the discussion - would this handle multi-word triggers, e.g. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As far as I understand, currently triggered text is deleted by character (but at least you can insert text wholesale via clipboard), and this slower than ideal and also pollutes undo stack a bit more than necessary
What if the triggers could be analyzed on load and then instead of backspacing ":manycharacterstotrigger" you could ⌥⌫ (or whatever user-configurabe per-system keybind would delete back by word) in just two keypresses (another one to delete
:
)(and since espanso tracks which app triggers an expansion you could even have the perfect solution in advanced apps like vim that allow you to jump to arbitrary text: send keys that would trigger a command to select untill
:
and delete)Another bright idea given potential app-dependent imprecisions: you could select by word, then cut (saving current clipboard not to lose it), compare how much you've cut vs. the originally inserted text and repeat untill everything is deleted (or even insert back is you've deleted a little extra) (and restoring clipboard in the end). This verification method could also help have the word jumping be less precise
Beta Was this translation helpful? Give feedback.
All reactions