{"action":"created","issue":{"url":"https://api.github.com/repos/emacs-helm/helm/issues/1566","repository_url":"https://api.github.com/repos/emacs-helm/helm","labels_url":"https://api.github.com/repos/emacs-helm/helm/issues/1566/labels{/name}","comments_url":"https://api.github.com/repos/emacs-helm/helm/issues/1566/comments","events_url":"https://api.github.com/repos/emacs-helm/helm/issues/1566/events","html_url":"https://github.com/emacs-helm/helm/issues/1566","id":165961715,"number":1566,"title":"Why doesn't helm-grep-ag just use ag for pattern contains whitespace (but still need grep)?","user":{"login":"xuchunyang","id":4550353,"avatar_url":"https://avatars.githubusercontent.com/u/4550353?v=3","gravatar_id":"","url":"https://api.github.com/users/xuchunyang","html_url":"https://github.com/xuchunyang","followers_url":"https://api.github.com/users/xuchunyang/followers","following_url":"https://api.github.com/users/xuchunyang/following{/other_user}","gists_url":"https://api.github.com/users/xuchunyang/gists{/gist_id}","starred_url":"https://api.github.com/users/xuchunyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuchunyang/subscriptions","organizations_url":"https://api.github.com/users/xuchunyang/orgs","repos_url":"https://api.github.com/users/xuchunyang/repos","events_url":"https://api.github.com/users/xuchunyang/events{/privacy}","received_events_url":"https://api.github.com/users/xuchunyang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-17T05:34:24Z","updated_at":"2016-07-17T07:01:30Z","closed_at":null,"body":"For example, I want to search \"defun helm\" under the helm project, if I am under shell, I just use `ag 'defun helm'`, but use the same patter in M-x helm-do-grep-ag, the command will be run is: (`ag defun | grep helm`)\r\n\r\n```\r\n Command line used was:\r\n\r\nag --smart-case --line-numbers --nogroup --color-match='0;32'  defun /Users/xcy/Projects/helm/ | grep --perl-regexp --color=always helm\r\n```\r\n\r\nit doesn't work for me because grep on Mac is BSD variant and doesn't support `--perl-regexp`. My question is why not just pass the whole pattern to ag?"},"comment":{"url":"https://api.github.com/repos/emacs-helm/helm/issues/comments/233168567","html_url":"https://github.com/emacs-helm/helm/issues/1566#issuecomment-233168567","issue_url":"https://api.github.com/repos/emacs-helm/helm/issues/1566","id":233168567,"user":{"login":"xuchunyang","id":4550353,"avatar_url":"https://avatars.githubusercontent.com/u/4550353?v=3","gravatar_id":"","url":"https://api.github.com/users/xuchunyang","html_url":"https://github.com/xuchunyang","followers_url":"https://api.github.com/users/xuchunyang/followers","following_url":"https://api.github.com/users/xuchunyang/following{/other_user}","gists_url":"https://api.github.com/users/xuchunyang/gists{/gist_id}","starred_url":"https://api.github.com/users/xuchunyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuchunyang/subscriptions","organizations_url":"https://api.github.com/users/xuchunyang/orgs","repos_url":"https://api.github.com/users/xuchunyang/repos","events_url":"https://api.github.com/users/xuchunyang/events{/privacy}","received_events_url":"https://api.github.com/users/xuchunyang/received_events","type":"User","site_admin":false},"created_at":"2016-07-17T07:01:30Z","updated_at":"2016-07-17T07:01:30Z","body":"I meant treating search pattern literally, for example, search pattern (regexp which is known by ag) \"defun helm\" means \"defun helm\" as a whole (10 characters), not a line contains both \"defun\" and \"helm\". I guess ag will not do the search twice in this example."}}
{"actor":{"display_login":"xuchunyang"}}