I'm only doing word completion at the moment, because I didn't consider that case. (I'm accustomed to putting queries in a single argument). Unfortunately, completing multiple arguments as if they should be concatenated into a single argument is very tricky.
@jarun Directly pushed this fix since further testing of the bash version (which was undertested) surfaced a bug.
Autocomplete queries
====================
Using the https://www.google.com/complete/search API. See `completer_fetch_completions` in `googler` for details.
Functionality added to completion scripts for all three shells. No opt-out at the moment.
Okay, I took a look and realized I don't need to relearn anything to finish the bash version, so I just implemented it.
I'll get to that. Maybe tonight if I have some spare time. Or maybe a few days later; after all I have a 15-hour international flight back to China tomorrow.
Oh yeah, I had to refresh the page constantly too. I do have email notifications on, though.
imagemagick@6 6.9.9-7
=====================
Created with `brew bump-formula-pr`.
---
Please remember to
```
brew mirror imagemagick@6
```
when merging.
<img src="https://i.imgur.com/s8TMOSU.png" width="40" height="53">
imagemagick 7.0.6-7
===================
Created with `brew bump-formula-pr`.
---
Please remember to
```
brew mirror imagemagick
```
when merging.
<img src="https://i.imgur.com/s8TMOSU.png" width="40" height="53">
@jarun Absolutely no offense, but are you able to see my comments in the thread https://github.com/zmwangx/googler/commit/e3f52f19b77303fd01b9e45690b990c6e5fc4903#commitcomment-23617093? Judging from your comments I feel like my comments are somehow hidden from you...
Weird, you're responding as if you can't see my comments on this thread...
Include Python version in debug output
======================================
Why ask for it when we can extract that ourselves.
Yeah, that's exactly what c617e3a (current tip of the branch) does.
Are you using c617e3a? I can't reproduce on 3.5 or earlier.
Oh, okay, loading from bytes is new in 3.6. https://docs.python.org/3/library/json.html#json.loads I'll push out a patch in a second.
Or just `curl 'https://www.google.com/complete/search?client=psy-ab&q=goo'`.
I suppose if you run `googler --complete goo` it also doesn't work?
Any suggestion for a non-`string` equivalent of `[[ $arg != -* ]]` in fish? Even this `string` version is pretty barbaric, but that was what I could come up with after browsing fish's docs for five minutes. I only tested on fish 2.6.0, by the way.