-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Alfred version #16
Conversation
This is rad @lumaxis! I just pulled in a PR that added two phone emojis, mind running your magic script and pushing the update? Also have any thoughts on how we can best handle updates/changes to the lists in the future? 😨 |
Just updated and also rebased to resolve the conflicts with I unfortunately don't really have a good strategy for updates in the future either 🤔 |
Okay sorry to keep sending you back @lumaxis but @rael9 created a script/templating system!! I tried to fix this up myself but am having trouble understanding how |
Haha, no worries :) Noticed @rael9's latests comments to and will take a look at the templating system once I'm done with work or over the weekend the latest. The |
Sounds great :) Thanks again for your patience and help. |
So, the problem as I see it is that the I didn't have much time to look over @rael9's templating system but on first glance this system doesn't seem to fit very well. |
@lumaxis, no it's not really set up for that right now. I wasn't familiar with how Alfred does snippets, so my code is set up more for list-style files, where all of the replacements are listed in one file. Mainly I did this as my sample size was 2, the original plist and the Keyboard Maestro macro 😄 The way I see it, we have 2 directions we could go in. It sounds like you already have a script to put together the .alfredsnippets file, so we could add that and have one script that calls both, or we could adapt one of our scripts to handle multiple types. Also, I was thinking that perhaps the list of emojis should actually start in some sort of simple format (CSV or JSON or ?) and we could then build the plist from that as well. It would probably be easier to maintain the emoji list that way. |
At least it's still a script-solvable problem! I definitely agree @rael9: we should move the substitutions into a csv. I'll go ahead and do that later unless you have already! As for Keyboard Maestro, we should probably just special case it. It doesn't feel elegant at all but it's unclear how many more templates there really need to be and it should get the job done of keeping the lists up to date! |
This is what a single file in the {
"alfredsnippet": {
"snippet": "🚀",
"uid": "dd2c19ca-4d17-4763-b5c7-d87b0169de19",
"name": "rocket",
"keyword": ":rocket:"
}
} The file name consists of |
Yes, I just used a UUID library to create random ones. |
@rael9 are you still interested in giving this a shot? :) No pressure if not. I can always try to pull up my sleeves and brush up my scripting. |
c6815cc
to
fc7ed1d
Compare
#37 fixes this! Thank you all! |
No description provided.