{"action":"created","issue":{"url":"https://api.github.com/repos/scrooloose/nerdtree/issues/808","repository_url":"https://api.github.com/repos/scrooloose/nerdtree","labels_url":"https://api.github.com/repos/scrooloose/nerdtree/issues/808/labels{/name}","comments_url":"https://api.github.com/repos/scrooloose/nerdtree/issues/808/comments","events_url":"https://api.github.com/repos/scrooloose/nerdtree/issues/808/events","html_url":"https://github.com/scrooloose/nerdtree/issues/808","id":298489764,"number":808,"title":"nerdTree wont close after running :grep and getting results","user":{"login":"SpikePy","id":16565183,"avatar_url":"https://avatars3.githubusercontent.com/u/16565183?v=4","gravatar_id":"","url":"https://api.github.com/users/SpikePy","html_url":"https://github.com/SpikePy","followers_url":"https://api.github.com/users/SpikePy/followers","following_url":"https://api.github.com/users/SpikePy/following{/other_user}","gists_url":"https://api.github.com/users/SpikePy/gists{/gist_id}","starred_url":"https://api.github.com/users/SpikePy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpikePy/subscriptions","organizations_url":"https://api.github.com/users/SpikePy/orgs","repos_url":"https://api.github.com/users/SpikePy/repos","events_url":"https://api.github.com/users/SpikePy/events{/privacy}","received_events_url":"https://api.github.com/users/SpikePy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-20T06:57:50Z","updated_at":"2018-05-16T12:20:13Z","closed_at":"2018-05-16T12:20:13Z","author_association":"NONE","body":"**Environment:** using ripgrep as :grep command, let g:NERDTreeQuitOnOpen = 1\r\n\r\n>* Operating System: arch linux\r\n>* Vim version `8`\r\n\r\n**Current Result:** _If I open vim in a directory like \"vim .\" i see nerdtree in this window. if i then :grep \"someCode\" it opens another 2 windows. one with the first result file and the quicklist but nerdtree is also still open_\r\n\r\n**Expected Result:** _nerdTree should be closed if there were matches found and stay open if no matches were found, just like netrw behaves_\r\n\r\n**Screenshot(s):**\r\n![image](https://user-images.githubusercontent.com/16565183/36410772-cd884fb6-1612-11e8-9f18-a2e9b7f7baec.png)\r\n"},"comment":{"url":"https://api.github.com/repos/scrooloose/nerdtree/issues/comments/389498469","html_url":"https://github.com/scrooloose/nerdtree/issues/808#issuecomment-389498469","issue_url":"https://api.github.com/repos/scrooloose/nerdtree/issues/808","id":389498469,"user":{"login":"lifecrisis","id":15251574,"avatar_url":"https://avatars2.githubusercontent.com/u/15251574?v=4","gravatar_id":"","url":"https://api.github.com/users/lifecrisis","html_url":"https://github.com/lifecrisis","followers_url":"https://api.github.com/users/lifecrisis/followers","following_url":"https://api.github.com/users/lifecrisis/following{/other_user}","gists_url":"https://api.github.com/users/lifecrisis/gists{/gist_id}","starred_url":"https://api.github.com/users/lifecrisis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lifecrisis/subscriptions","organizations_url":"https://api.github.com/users/lifecrisis/orgs","repos_url":"https://api.github.com/users/lifecrisis/repos","events_url":"https://api.github.com/users/lifecrisis/events{/privacy}","received_events_url":"https://api.github.com/users/lifecrisis/received_events","type":"User","site_admin":false},"created_at":"2018-05-16T12:20:13Z","updated_at":"2018-05-16T12:20:13Z","author_association":"COLLABORATOR","body":"I see.  I didn't read closely enough.  It looks like you opened the tree with the `vim .` command.  If you had opened Vim with `vim` and then run `:NERDTree` the autocommand above would work.\r\n\r\nWhen you use `vim .` or `:edit .`, you are opening the NERDTree in a normal Vim window, not in a side bar. In other words, it is *supposed* to stay open in this case.  You'll have to investigate to find your own custom solution in this case.  It's not in our project's scope to prescribe exactly when a NERDTree window should be closed automatically or kept open."}}
{"actor":{"display_login":"lifecrisis"}}