{"action":"created","issue":{"url":"https://api.github.com/repos/Shougo/neoinclude.vim/issues/6","labels_url":"https://api.github.com/repos/Shougo/neoinclude.vim/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/Shougo/neoinclude.vim/issues/6/comments","events_url":"https://api.github.com/repos/Shougo/neoinclude.vim/issues/6/events","html_url":"https://github.com/Shougo/neoinclude.vim/issues/6","id":106607144,"number":6,"title":"Generate tags for files in current directory","user":{"login":"petobens","id":2583971,"avatar_url":"https://avatars.githubusercontent.com/u/2583971?v=3","gravatar_id":"","url":"https://api.github.com/users/petobens","html_url":"https://github.com/petobens","followers_url":"https://api.github.com/users/petobens/followers","following_url":"https://api.github.com/users/petobens/following{/other_user}","gists_url":"https://api.github.com/users/petobens/gists{/gist_id}","starred_url":"https://api.github.com/users/petobens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petobens/subscriptions","organizations_url":"https://api.github.com/users/petobens/orgs","repos_url":"https://api.github.com/users/petobens/repos","events_url":"https://api.github.com/users/petobens/events{/privacy}","received_events_url":"https://api.github.com/users/petobens/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-15T17:37:45Z","updated_at":"2015-09-17T13:57:19Z","closed_at":"2015-09-17T13:53:30Z","body":"Suppose I have the following `m` files in the same directory:\r\n\r\ni) `bar.m`:\r\n\r\n```matlab\r\nfunction y = bar(x)\r\n    y = x + 2;\r\nend\r\n```\r\n ii) `foo.m`\r\n\r\n```matlab\r\ndisp(bar(2))\r\n```\r\n\r\n(i.e from the file `foo.m` I'm calling a function `bar()` defined in the file `bar.m`).\r\n\r\nNow, using [universal-ctags](https://github.com/universal-ctags/ctags) If run `!ctags -R *.m` from the file `foo.m`, the following tag file is generated:\r\n\r\n````\r\n!_TAG_FILE_FORMAT\t2\t/extended format; --format=1 will not append ;\" to lines/\r\n!_TAG_FILE_SORTED\t1\t/0=unsorted, 1=sorted, 2=foldcase/\r\n!_TAG_PROGRAM_AUTHOR\tUniversal Ctags Team\t//\r\n!_TAG_PROGRAM_NAME\tUniversal Ctags\t/Derived from Exuberant Ctags/\r\n!_TAG_PROGRAM_URL\thttps://ctags.io/\t/official site/\r\n!_TAG_PROGRAM_VERSION\tDevelopment\t//\r\nbar\tbar.m\t/^function y = bar(x)$/;\"\tf\r\n````\r\n\r\nwhich then allows me to place the cursor in `bar(2)` (in `foo.m`) and press `C-]` to jump to the `bar()` function definition in `bar.m`. \r\n\r\nI'm trying to replicate this behavior using `neoinclude` and `unite-tag`. However when I use the mapping (without running `!ctags -R *.m`):\r\n```vim\r\n nnoremap <buffer> <silent> <C-]> :NeoIncludeMakeCache<CR>\r\n                \\ :UniteWithCursorWord -immediately -sync tag/include<CR>\r\n\r\n```\r\n\r\nnothing happens.\r\n\r\nI think I found the problem: if from `foo.m` I run `:NeoIncludeMakeCache` and  then `:Unite tag/include` I get an empty buffer.\r\nSo this means that no tags are generated for `bar.m`.  However I expect neoinclude to generate tags for `bar.m` since according to the docs:\r\n\r\n>g:neoinclude#paths\t\r\n\t\tIt is the variable to enumerate path of the include file\r\n\t\tevery file type.  When there is not it, 'path' is used.\r\n\t\tRefer to 'path' for the description form.  It is the\r\n\t\tdictionary of the character string that assumed file type a\r\n\t\tkey.\r\n\r\nand I run `set path?` I get `path=.,,` which means that the current directory is included (however `echo g:neoinclude#_paths` returns `{}` . \r\n\r\n\r\nBtw, here is a minimal vimrc and Gif showing the problem:\r\n\r\n```vim\r\nset nocompatible\r\n\r\nlet $ONEDRIVE_HOME = expand('C:/OD/Users/Pedro')\r\nlet $DOTVIM = expand('$ONEDRIVE_HOME/vimfiles')\r\n\r\nset runtimepath+=$DOTVIM/bundle/unite\r\nset runtimepath+=$DOTVIM/bundle/neoinclude\r\nset runtimepath+=$DOTVIM/bundle/unite-tag\r\nset runtimepath+=$DOTVIM/bundle/vimproc\r\nfiletype plugin indent on\r\n```\r\n\r\n![gif](https://cloud.githubusercontent.com/assets/2583971/9884652/4a20e0ba-5bb7-11e5-8fa6-43a4062ba5ef.gif)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Shougo/neoinclude.vim/issues/comments/141094760","html_url":"https://github.com/Shougo/neoinclude.vim/issues/6#issuecomment-141094760","issue_url":"https://api.github.com/repos/Shougo/neoinclude.vim/issues/6","id":141094760,"user":{"login":"Shougo","id":41495,"avatar_url":"https://avatars.githubusercontent.com/u/41495?v=3","gravatar_id":"","url":"https://api.github.com/users/Shougo","html_url":"https://github.com/Shougo","followers_url":"https://api.github.com/users/Shougo/followers","following_url":"https://api.github.com/users/Shougo/following{/other_user}","gists_url":"https://api.github.com/users/Shougo/gists{/gist_id}","starred_url":"https://api.github.com/users/Shougo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shougo/subscriptions","organizations_url":"https://api.github.com/users/Shougo/orgs","repos_url":"https://api.github.com/users/Shougo/repos","events_url":"https://api.github.com/users/Shougo/events{/privacy}","received_events_url":"https://api.github.com/users/Shougo/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T13:57:19Z","updated_at":"2015-09-17T13:57:19Z","body":"> Ideally what I would like is that neoinclude generates tags for the current file and for all files included with the source() function (in this case bar.R).\r\n\r\nOK.  I added R support.\r\n\r\n> and I run set path? I get path=.,, which means that the current directory is included (however echo g:neoinclude#_paths returns {} .\r\n\r\nTo analyze other file, you need 'include' or `g:neoinclude#_patterns`.\r\nBut in foo.m, it is not found.  So it is failed.\r\nIf you need 'ctags -R' auto generator, you should use auto-ctags.vim plugin.\r\n\r\nhttps://github.com/soramugi/auto-ctags.vim"}}