{"action":"created","issue":{"url":"https://api.github.com/repos/mhinz/vim-grepper/issues/83","repository_url":"https://api.github.com/repos/mhinz/vim-grepper","labels_url":"https://api.github.com/repos/mhinz/vim-grepper/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/mhinz/vim-grepper/issues/83/comments","events_url":"https://api.github.com/repos/mhinz/vim-grepper/issues/83/events","html_url":"https://github.com/mhinz/vim-grepper/issues/83","id":194673407,"number":83,"title":"Project root finder","user":{"login":"lbonn","id":2680312,"avatar_url":"https://avatars.githubusercontent.com/u/2680312?v=3","gravatar_id":"","url":"https://api.github.com/users/lbonn","html_url":"https://github.com/lbonn","followers_url":"https://api.github.com/users/lbonn/followers","following_url":"https://api.github.com/users/lbonn/following{/other_user}","gists_url":"https://api.github.com/users/lbonn/gists{/gist_id}","starred_url":"https://api.github.com/users/lbonn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbonn/subscriptions","organizations_url":"https://api.github.com/users/lbonn/orgs","repos_url":"https://api.github.com/users/lbonn/repos","events_url":"https://api.github.com/users/lbonn/events{/privacy}","received_events_url":"https://api.github.com/users/lbonn/received_events","type":"User","site_admin":false},"labels":[{"id":480661819,"url":"https://api.github.com/repos/mhinz/vim-grepper/labels/feature%20request","name":"feature request","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-12-09T19:10:48Z","updated_at":"2016-12-14T20:02:25Z","closed_at":"2016-12-14T16:18:39Z","body":"vim-grepper is difficult to use with multiple projects (eg: git repos) at once because it searches from the vim current directory.\r\n\r\nThis is partially solved by the faq entry about git grep: https://github.com/mhinz/vim-grepper/blob/3a0157f07090136caaa257c715a1e57b8e4f8ca2/doc/grepper.txt#L358\r\n\r\nHowever, it does not solve all of the use cases:\r\n\r\nIf we have a directory with two git repos: `d/a` and `d/b`, `git grep` won't work if we open a file of `a` from vim in `d` (ag or a friend can help us here but it will search both repos). If we start from `a` and open a file in `b`, we won't be able to search the `b` repo from here in any case without changing  the vim's current dir.\r\n\r\nThis is probably a bit controversial because it would probably add some complexity to vim-grepper but it would be nice to have a toggleable heuristic to detect the wanted directory from the current buffer.\r\n\r\nThis is what ctrlp does:\r\nhttps://github.com/ctrlpvim/ctrlp.vim/blob/a99119abbbae346029ae3befc1bbf7b707098cf3/doc/ctrlp.txt#L187\r\n\r\n`:Ggrep` from fugitive works similarly and find the git repo in which the current buffer lies.\r\n\r\nIf it's not in the project's scope, it could also be a subject for the FAQ or the wiki but I suspect it would not be easy to add this in a vimrc."},"comment":{"url":"https://api.github.com/repos/mhinz/vim-grepper/issues/comments/267140392","html_url":"https://github.com/mhinz/vim-grepper/issues/83#issuecomment-267140392","issue_url":"https://api.github.com/repos/mhinz/vim-grepper/issues/83","id":267140392,"user":{"login":"mhinz","id":972014,"avatar_url":"https://avatars.githubusercontent.com/u/972014?v=3","gravatar_id":"","url":"https://api.github.com/users/mhinz","html_url":"https://github.com/mhinz","followers_url":"https://api.github.com/users/mhinz/followers","following_url":"https://api.github.com/users/mhinz/following{/other_user}","gists_url":"https://api.github.com/users/mhinz/gists{/gist_id}","starred_url":"https://api.github.com/users/mhinz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhinz/subscriptions","organizations_url":"https://api.github.com/users/mhinz/orgs","repos_url":"https://api.github.com/users/mhinz/repos","events_url":"https://api.github.com/users/mhinz/events{/privacy}","received_events_url":"https://api.github.com/users/mhinz/received_events","type":"User","site_admin":false},"created_at":"2016-12-14T20:02:25Z","updated_at":"2016-12-14T20:02:25Z","body":"Ah, good catch! I'll reword that FAQ.\r\n\r\nThanks for bringing this up."}}
{"actor":{"display_login":"mhinz"}}