{"action":"opened","issue":{"url":"https://api.github.com/repos/Shougo/unite.vim/issues/1158","repository_url":"https://api.github.com/repos/Shougo/unite.vim","labels_url":"https://api.github.com/repos/Shougo/unite.vim/issues/1158/labels{/name}","comments_url":"https://api.github.com/repos/Shougo/unite.vim/issues/1158/comments","events_url":"https://api.github.com/repos/Shougo/unite.vim/issues/1158/events","html_url":"https://github.com/Shougo/unite.vim/issues/1158","id":154231549,"number":1158,"title":"The file_rec/neovim source does not use g:unite_source_rec_async_command","user":{"login":"PonderingGrower","id":2212681,"avatar_url":"https://avatars.githubusercontent.com/u/2212681?v=3","gravatar_id":"","url":"https://api.github.com/users/PonderingGrower","html_url":"https://github.com/PonderingGrower","followers_url":"https://api.github.com/users/PonderingGrower/followers","following_url":"https://api.github.com/users/PonderingGrower/following{/other_user}","gists_url":"https://api.github.com/users/PonderingGrower/gists{/gist_id}","starred_url":"https://api.github.com/users/PonderingGrower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PonderingGrower/subscriptions","organizations_url":"https://api.github.com/users/PonderingGrower/orgs","repos_url":"https://api.github.com/users/PonderingGrower/repos","events_url":"https://api.github.com/users/PonderingGrower/events{/privacy}","received_events_url":"https://api.github.com/users/PonderingGrower/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-11T12:29:08Z","updated_at":"2016-05-11T12:29:08Z","closed_at":null,"body":"# Problems summary\r\nThe `file_rec/neovim` source does not seem to return the same results as the command\r\nspecified in the `g:unite_source_rec_async_command` variable.\r\n\r\n## Expected\r\nI expected the same results from `file_rec/neovim` as when I run the `g:unite_source_rec_async_command` command manually from shell.\r\n\r\nQuoting from the documentation:\r\n```\r\nfile_rec/neovim Similar to |unite-source-file_rec|, but get files\r\n                asynchronously by neovim job APIs with\r\n                |g:unite_source_rec_async_command|.\r\n```\r\n\r\n## Environment Information\r\n * OS: `Ubuntu 12.04.5 LTS`\r\n * Vim version: `NVIM 0.1.5-dev`\r\n\r\n## minimal .vimrc\r\n\r\n`/tmp/test_nvim.init`:\r\n```vim\r\ncall plug#begin('~/.config/nvim/bundle')\r\nPlug 'Shougo/unite.vim'\r\ncall plug#end()\r\n\r\ncall unite#custom#source('file_rec/neovim', 'max_candidates', 300)\r\n\r\nlet g:unite_source_rec_async_command =\r\n    \\ ['ag', '--follow', '--nocolor', '-p', '~/.agignore', '-g', '']\r\n\r\nnnoremap <c-i> :Unite -no-split file_rec/neovim:~/<CR>\r\n```\r\n\r\n`.agignore`:\r\n```\r\n.config/\r\n.cache/\r\n.wine/\r\n...(ommitted)...\r\n```\r\n\r\n## The reproduce ways from Vim starting\r\n\r\n 1. `nvim -u /tmp/test_nvim.init`\r\n 2. Hit `<c-i>`\r\n 3. Run `ag --follow --nocolor -p ~/.agignore -g ''` from home(`~/`).\r\n 4. Compare the results, see that they are different.\r\n\r\nMain issue is that the results include, for example, `.cache` dir that is ignored in my `.agignore`.\r\n\r\n## Screencast\r\n\r\nhttps://asciinema.org/a/1aiuqm1z6dqrbnyt855vwooml\r\n"}}