This uses the Google Autocomplete API which seems a bit risky to use [0] and according to this Google blog post should be already shut down [1].
Do you have any newer information on how reliable the API is?
Had this idea a while back: I really enjoyed auto complete in my IDE and configurable expansions and I wanted that everywhere. I threw together an app to run in the background to keep track of the last word I typed and manage suggestions when I hit a hotkey. Read from a local dictionary, used basic usage frequency and levenshtein distance to recommend, pretty straightforward hacked together in an afternoon project. I could see Anycomplete using a more local suggestion list instead of relying on Google.
Ideally it showed a drop down under where you're typing much like most IDEs would, but support was shotty at best.
I really wish there were more OS level hooks for this sort of thing, or a more standardized way to understand what the user is typing and where, but that's not something I ever expect to happen. My app was basically a keylogger while the one in the post is more like a separate entity altogether.
I just tried Hammerspoon for the first time this week and it's really, really powerful. Currently working on an automation suite for a bunch of tedious "micro-workflows" that I deal with on a daily basis.
Really enjoying seeing a lot of new projects based on Hammerspoon. And very glad for the people who created it, because maintaining the precursor was a daunting job and took too much of my time and gave me too much stress.
Is there a place to find inspiration or other examples of Hammerspoon extensions? Just installed and wrote a few simple scripts, but having a hard time coming up with anything groundbreaking that I'd want to build.
This is great, thanks for sharing. I've opened a pull request (#5) with a tweak I made here - hold shift whilst choosing an option to actually show the google results instead of pasting. Hammerspoon looks fantastic, can't wait to automate even more!
I built something like this many moons ago for browser history. A service would run on your machine to aggregate your browser history. Typing "http://" anywhere on your machine would pop up a dialog with your history of most recently visited sites. I wonder if browsers have gotten better with APIs for web history and if it's any easier in windows. System-wide keystrokes had to be checked with win32 calls which could set off antivirus alarms. Keep up the good work. Maybe this will inspire me to see if things have gotten better.
This is pretty cool, but it would really impress me if it could autocomplete facts based on contexts. I wish I could open a text editor and begin writing while Anycomplete(-plus) crawled the web for links to factual data based on the writing so far. Otherwise the context switching is time-consuming and discouraging.
That seems both really cool and absolutely terrifying. Automatically find references when writing a tutorial? Hell yes! Automatically find references to support an argument you've decided to make? Hmm... maybe not a win for journalism.
[edit] Actually, I guess the way you described it, it could go the other way. You start writing some argument, and google shows you some stats that show you're wrong, or something. That would be neat.
DEVONsphere does something close to that. It does a simple keyword analysis and searches local/web. But what you are describing is more of a personal research assistant that's way beyond what today's system can do.
Nicely done. It will be interesting to see if this impacts your robot score when using Google. There was a blow up a while ago where people used the completion API to fish for trending searches and front run the Google News API and get stories onto the news page.
This is very useful for people like me who google words to check the correct spelling. Any plans on adding support for definitions / explanations of words? Something like the result of "define aurora" google query.
[+] [-] stroebjo|9 years ago|reply
[0]: http://stackoverflow.com/questions/6428502/google-search-aut... [1]: https://webmasters.googleblog.com/2015/07/update-on-autocomp...
[+] [-] nathancahill|9 years ago|reply
[+] [-] AlphaWeaver|9 years ago|reply
[+] [-] jxy|9 years ago|reply
[+] [-] jsrn|9 years ago|reply
To run this with macOS, I had to use the GNU version of sed. I installed it with
And it is then called with 'gsed' instead of 'sed'.As an avid Perl programmer, I had json_pp in my $PATH - for everyone else - it is here: https://metacpan.org/pod/JSON::PP
You can install it with cpanm:
If you don't have cpanm, you can install it with The modified command line from above then becomes: Here is a little Bash function to encapsulate this: Which then allows you to use it like this: For spaces in your query, use a '+':[+] [-] kevinastone|9 years ago|reply
[0]: https://stedolan.github.io/jq/
[+] [-] devoply|9 years ago|reply
[+] [-] mooman219|9 years ago|reply
Ideally it showed a drop down under where you're typing much like most IDEs would, but support was shotty at best. I really wish there were more OS level hooks for this sort of thing, or a more standardized way to understand what the user is typing and where, but that's not something I ever expect to happen. My app was basically a keylogger while the one in the post is more like a separate entity altogether.
[+] [-] lbotos|9 years ago|reply
[+] [-] _vya7|9 years ago|reply
[+] [-] mooman219|9 years ago|reply
[+] [-] ryanSrich|9 years ago|reply
[+] [-] wingerlang|9 years ago|reply
[+] [-] hossbeast|9 years ago|reply
[+] [-] Ph0X|9 years ago|reply
[1] http://keypirinha.com/
[+] [-] wingerlang|9 years ago|reply
[+] [-] joshuak|9 years ago|reply
Universal autocomplete via google api? Hmm, something to think about.
1) Keyloggers
2) Filter bubbles
3) Offline tax
[+] [-] worldsayshi|9 years ago|reply
[+] [-] sytringy05|9 years ago|reply
[+] [-] Aldo_MX|9 years ago|reply
[+] [-] pdaddyo|9 years ago|reply
[+] [-] milge|9 years ago|reply
[+] [-] rm_-rf_slash|9 years ago|reply
[+] [-] kayamon|9 years ago|reply
Search for "swing", then in the search box, delete that and type in "play". It'll auto-complete with something like "playground swing".
Now in a new tab, search for "music". Then delete that and search for "play". You'll get different results.
(doesn't work with the browser search box, has to be the one in the page itself)
[+] [-] Gracana|9 years ago|reply
[edit] Actually, I guess the way you described it, it could go the other way. You start writing some argument, and google shows you some stats that show you're wrong, or something. That would be neat.
[+] [-] mmanfrin|9 years ago|reply
[+] [-] jxy|9 years ago|reply
[+] [-] outcoldman|9 years ago|reply
[+] [-] ChuckMcM|9 years ago|reply
[+] [-] rootlocus|9 years ago|reply
[+] [-] known|9 years ago|reply
[+] [-] willcodeforfoo|9 years ago|reply
[+] [-] smnplk|9 years ago|reply
[+] [-] justinzollars|9 years ago|reply
[+] [-] nathancahill|9 years ago|reply
[+] [-] unknown|9 years ago|reply
[deleted]
[+] [-] unknown|9 years ago|reply
[deleted]
[+] [-] unknown|9 years ago|reply
[deleted]
[+] [-] unknown|9 years ago|reply
[deleted]
[+] [-] unknown|9 years ago|reply
[deleted]
[+] [-] unknown|9 years ago|reply
[deleted]
[+] [-] unknown|9 years ago|reply
[deleted]
[+] [-] unknown|9 years ago|reply
[deleted]
[+] [-] unknown|9 years ago|reply
[deleted]
[+] [-] unknown|9 years ago|reply
[deleted]
[+] [-] thecity2|9 years ago|reply
[+] [-] nathancahill|9 years ago|reply
[+] [-] erelde|9 years ago|reply