zquestz / s

Open a web search in your terminal.
MIT License
2.34k stars 114 forks source link

Passing strings as arguments #143

Closed idkjs closed 4 years ago

idkjs commented 4 years ago

If you wanted to search github with query params, is that possible?

Some examples:

# works with no params
❯ s zquest -p github -o
https://github.com/search?utf8=✓&q=zquest
# doesnt work
❯ s zquestz extension:go -p github -o
https://github.com/search?utf8=✓&q=zquestz+extension%3Ago

# doesnt work with quotes around query string
~
❯ s "zquestz extension:go" -p github -o
https://github.com/search?utf8=✓&q=zquestz+extension%3Ago

# works without `utf8`
~
❯ open https://github.com/search?q=zquestz+extension%3Ago

Thanks for sharing your project.

zquestz commented 4 years ago

Currently not possible. Right now. it just does a normal search and puts the whole search phrase into the q param.

I also. don't see any difference between open https://github.com/search?q=zquestz+extension%3Ago and https://github.com/search?utf8=✓&q=zquestz+extension%3Ago in my testing...

idkjs commented 4 years ago

Me neither from your links. I would have to reinstall to see what the issue was. Thanks for taking the time.