luckman212 Posted November 23, 2019 Share Posted November 23, 2019 Before I go too far down a rabbit hole, I came here for a sanity check... What I'm after is to be able to programmatically generate a list of all defined hotkeys across my entire workflows collection. I briefly looked at iterating though each Info.plist from the Alfred.alfredpreferences/workflows/user.workflow.{UUID}/info.plist and trying to parse out the details using some XML tools... but that seems like a medium sized undertaking and if there's any other simpler or more reliable way I'd love to hear about it! Thanks guys Link to comment
deanishe Posted November 23, 2019 Share Posted November 23, 2019 7 hours ago, luckman212 said: if there's any other simpler or more reliable way I'd love to hear about it! Nope, I don't think so. Parsing all the info.plist files is the most reasonable option, and it's not entirely straightforward unless you're doing it in ObjC/Swift: Link to comment
luckman212 Posted November 24, 2019 Author Share Posted November 24, 2019 Thanks @deanishe - I figured I wasn't the only one who would want something like this. Maybe @Andrew would consider making this info more accessible somehow, expose an API or something. Anyway, @Acidham's workflow is neat. I'll keep an eye on it. Link to comment
dfay Posted November 24, 2019 Share Posted November 24, 2019 see keyword hot in luckman212 1 Link to comment
Acidham Posted November 24, 2019 Share Posted November 24, 2019 @dfay great! That's what I was looking for. I will try to use the mapping in list_hotkey.py for my workflow! Link to comment
Acidham Posted November 24, 2019 Share Posted November 24, 2019 Thanks guys for the help! fyi: https://github.com/Acidham/search-alfred-workflows is now supporting keyboard shortcuts! luckman212 1 Link to comment
luckman212 Posted November 25, 2019 Author Share Posted November 25, 2019 @Acidham really slick workflow! I love this. The quicklook popup in Markdown is pretty cool, but I don't have a good QL markdown plugin, so it just renders as plaintext. Got any suggestions? Link to comment
vitor Posted November 25, 2019 Share Posted November 25, 2019 On 11/23/2019 at 2:33 PM, luckman212 said: if there's any other simpler or more reliable way I'd love to hear about it! Depends on why you want to get the list. If all you want to do is see all your Hotkeys in Alfred (e.g. in a Script Filter), all you need is to type ?hotkey. Link to comment
Acidham Posted November 25, 2019 Share Posted November 25, 2019 6 hours ago, luckman212 said: @Acidham really slick workflow! I love this. The quicklook popup in Markdown is pretty cool, but I don't have a good QL markdown plugin, so it just renders as plaintext. Got any suggestions? Try this one for Catalina: https://github.com/toland/qlmarkdown Link to comment
luckman212 Posted December 4, 2019 Author Share Posted December 4, 2019 @Acidham Thanks, that worked perfectly 🙂 Link to comment
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