P. Colin Manikoth Posted September 27, 2020 Posted September 27, 2020 Why is one snippet OK (in black) - but the other is not (in red) -- see link to screenshot? Do the 2nd, 3rd, etc. characters have to be unique also for a Snippet to expand? Both are set to Auto Expansion. // Working snippet in black text :ux // Not valid snippet in red text :uxd Screenshot
deanishe Posted September 28, 2020 Posted September 28, 2020 5 hours ago, P. Colin Manikoth said: Do the 2nd, 3rd, etc. characters have to be unique also for a Snippet to expand? One snippet keyword can’t be a prefix of another if you have auto expansion turned on. How could that work? You could never type :uxd because Alfred would auto-expand as soon as you typed :ux.
Vero Posted September 28, 2020 Posted September 28, 2020 @P. Colin Manikoth As deanishe explains, the second snippet could never be typed as the first one would expand. If what you want is to type the full snippet keyword and for Alfred to only expand when you type a space afterwards, you can either add the space to your keyword itself (e.g. ":ux " noting the space after the x) or add it as a suffix for the entire collection. In that case, your second snippet would become possible. Cheers, Vero
jeremycherfas Posted September 28, 2020 Posted September 28, 2020 5 hours ago, Vero said: add it as a suffix for the entire collection Never thought of that. Thank you!
P. Colin Manikoth Posted October 2, 2020 Author Posted October 2, 2020 @deanishe TextExpander has this feature, but I see your points. @VeroThank you. This is exactly what I looking for. It's like a "key trigger" for expansion. From the docs, took note of prefixes, but never considered using both together.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now