Mr Pennyworth Posted July 13, 2024 Posted July 13, 2024 I recently wrote a tutorial on building a "Google as You Type" workflow using AlfredExtraPane.app: https://github.com/mr-pennyworth/alfred-extra-pane#tutorial-search-google-as-you-type Few examples: andy4222, Li Zong, JJJJ and 2 others 3 2
Alfred0 Posted July 15, 2024 Posted July 15, 2024 WOW - really cool!! Mind sharing how did you do the gmap workflow.
Mr Pennyworth Posted July 15, 2024 Author Posted July 15, 2024 @Alfred0 gmap is same as the one shown in tutorial, but just with the URL change q="$1" function urlencode { echo -n "$1" \ | /usr/bin/python3 -c "import sys, urllib.parse; print(urllib.parse.quote_plus(sys.stdin.read()),end='')" } url_q=$(urlencode "$1") cat << EOF {"items" : [ {"title": "Search $q", "subtitle": "using maps.google.com", "arg": "https://www.google.com/maps?q=$url_q", "quicklookurl": "https://www.google.com/maps?q=$url_q"} ]} EOF Alfred0 1
dood Posted July 15, 2024 Posted July 15, 2024 This is super cool @Mr Pennyworth! Thanks for the great tutorial. One question – I've noticed that the app rapidly consumes memory in a short amount of time. Besides restarting the app, would there be another way to have it free up the memory once it's no longer in use (i.e. after I've navigated out of the workflow that activated AlfredExtraPane in the first place)?
Mr Pennyworth Posted July 15, 2024 Author Posted July 15, 2024 @dood thanks for flagging the issue! unfortunately, no ways to do that currently. I'll have to learn more about swift, webviews, and macOS app programming and debugging in general to get to it, so the fix could be far away unless, of course, someone sends a pull request 😇
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