santinic / how2

AI for the Command Line
https://how2terminal.com
MIT License
5.72k stars 156 forks source link

None of the answers I got make sense #41

Closed mttkay closed 8 years ago

mttkay commented 8 years ago

How does how2 resolve search queries? Here is what I searched (just to give it a spin)

Q: $how2 scala read file A: bash - Command substitution in for loop not working

Q: $how2 android launch activity in new task A: bash - When I run ./command.sh & the background task is ...

Q: $how2 how to use how2 A: software installation - how to install .git file?

Love the premise of the project, but its answers are completely off.

MorganMaison commented 8 years ago

@mttkay You should specify the language/technology for your query with the -l option.

for example : $how2 -l scala read file $how2 -l android launch activity in new task

Otherwise the default technology for your search is bash.

mttkay commented 8 years ago

Ah! A case of RTFM. Thanks!

Btw:

⭐  how2 -l android launch activity in new task                                                      
-You are doing too many requests to Google. You need to wait a bit before trying again.`

Known issue?

danyshaanan commented 8 years ago

Regarding Scala: See this line, where how2 suggests using the -l flag when using certain languages names. Might be wise to create PR with Scala added (along with other likely languages).

Regarding the 'btw' - consider opening a new issue to keep everything organised and searchable.

mttkay commented 8 years ago

:+1: https://github.com/santinic/how2/issues/42