{"action":"opened","issue":{"url":"https://api.github.com/repos/jarun/googler/issues/154","repository_url":"https://api.github.com/repos/jarun/googler","labels_url":"https://api.github.com/repos/jarun/googler/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/jarun/googler/issues/154/comments","events_url":"https://api.github.com/repos/jarun/googler/issues/154/events","html_url":"https://github.com/jarun/googler/issues/154","id":196152245,"number":154,"title":"Discussion: remove the --exact option and make it default","user":{"login":"zmwangx","id":4149852,"avatar_url":"https://avatars.githubusercontent.com/u/4149852?v=3","gravatar_id":"","url":"https://api.github.com/users/zmwangx","html_url":"https://github.com/zmwangx","followers_url":"https://api.github.com/users/zmwangx/followers","following_url":"https://api.github.com/users/zmwangx/following{/other_user}","gists_url":"https://api.github.com/users/zmwangx/gists{/gist_id}","starred_url":"https://api.github.com/users/zmwangx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zmwangx/subscriptions","organizations_url":"https://api.github.com/users/zmwangx/orgs","repos_url":"https://api.github.com/users/zmwangx/repos","events_url":"https://api.github.com/users/zmwangx/events{/privacy}","received_events_url":"https://api.github.com/users/zmwangx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-16T20:54:56Z","updated_at":"2016-12-16T20:54:56Z","closed_at":null,"body":"Say you run `googler googler`. The word \"googler\" doesn't even appear once in the results. What the ...? Oh, Google is showing results for \"google\". But there's no indication whatsoever of this autocorrect in our output; sure, we can introduce more complexity in the parser to detect \"Showing results for ...\", but just like the result count, this doesn't sit well with our entry-based parser and printer, and is especially problematic with serialized output (`--json`), unless we completely break the interface.\r\n\r\nMoreover, autocorrection simply isn't what people expect from command line utilities (autocorrect in interactive shell's line editor is a different story; we're talking about command lines being `exec`'ed here). When you `cat google`, `cat` doesn't autocorrect that to `googler`. You're responsible for what you type. If you made a typo, no sweat, do it again. (You can even correct the query right within googler's \"shell\", with all options preserved.)\r\n\r\nTherefore, I propose to remove the `--exact` option make it the default (that is, the only) behavior.\r\n\r\n@jarun I'll raise a PR if you support this idea."}}
{"actor":{"display_login":"zmwangx"}}