Actually, since this is both simple and interesting, I just went ahead and did it. @piggyslasher If you're a Zsh user, you can go ahead and try the topic branch https://github.com/zmwangx/googler/tree/complete-queries. There's an additional script to install; see notes in https://github.com/zmwangx/googler/tree/complete-queries#shell-completion. I may add bash support later.
Anyway, here's a screencast. Pretty cool.
[](https://asciinema.org/a/132752)
@jarun Feel like ever including this feature on master? If so, I'll integrate this into googler itself (put this behind a hidden option, say `--complete-query`), and add bash and possibly fish support.
@piggyslasher
> search completion
Search completion API is actually pretty simple:
```
$ curl 'https://www.google.com/complete/search?client=psy-ab&q=git'
["git",[["git\u003cb\u003ehub\u003c\/b\u003e",0],["git",0],["git\u003cb\u003elab\u003c\/b\u003e",0],["git\u003cb\u003e stash\u003c\/b\u003e",0]],{"q":"THnbq2A3yeMOKRqVYkA-eHqtIek","t":{"bpc":false,"tlw":false}}]
$ curl 'https://www.google.com/complete/search?client=psy-ab&q=goo'
["goo",[["goo\u003cb\u003egle\u003c\/b\u003e",0,[131]],["goo\u003cb\u003egle maps\u003c\/b\u003e",0,[131]],["goo\u003cb\u003egle translate\u003c\/b\u003e",0],["goo\u003cb\u003egle docs\u003c\/b\u003e",0]],{"q":"A7UvvlTFeq-jF_cJ1aNpcm8BByY","t":{"bpc":false,"tlw":false}}]
```
Those strings of interest, translated to human-readable form, are:
- `git<b>hub</b>`, `git<b>lab</b>`, `git<b> stash</b>`;
- `goo<b>gle</b>`, `goo<b>gle maps</b>`, `goo<b>gle translate</b>`, `goo<b>gle docs</b>`.
You should be able to parse these with ease, and write a completer based on that. As for myself, I'm afraid I'm not motivated enough to implement this, but it does look like an interesting weekend hack.
https://stackoverflow.com/a/38355714? Viewed 1,462 times over a year. If each converted to an install, and they all upgraded to 0.26.0 over the past 100 days... 😛
pulseaudio: fix plist
=====================
- [x] Have you followed the [guidelines for contributing](https://github.com/Homebrew/homebrew-core/blob/master/CONTRIBUTING.md)?
- [x] Have you checked that there aren't other open [pull requests](https://github.com/Homebrew/homebrew-core/pulls) for the same formula update/change?
- [x] Have you built your formula locally with `brew install --build-from-source <formula>`, where `<formula>` is the name of the formula you're submitting?
- [x] Does your build pass `brew audit --strict <formula>` (after doing `brew install <formula>`)?
-----
@ilovezfs Sorry, I screwed up in #16555 😠(Apparently copied the plist from emacs.rb).
pulseaudio: add launchd.plist
=============================
- [x] Have you followed the [guidelines for contributing](https://github.com/Homebrew/homebrew-core/blob/master/CONTRIBUTING.md)?
- [x] Have you checked that there aren't other open [pull requests](https://github.com/Homebrew/homebrew-core/pulls) for the same formula update/change?
- [x] Have you built your formula locally with `brew install --build-from-source <formula>`, where `<formula>` is the name of the formula you're submitting?
- [x] Does your build pass `brew audit --strict <formula>` (after doing `brew install <formula>`)?
-----
Allow brew-services to autostart the daemon at login.
Also slightly improve the test while we're at it.