New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to parse the tagname and kind from output of ctags -R -x #2042
Comments
I don't understand your question. Are you satisfied with the output of I don't know vim script. However, as far as reading vim.c, the vim parser of ctags, it doesn't fill scope fields. If you think it is a bug, tell us the vim parser fills scope field for what kind of input. |
Sorry for not making it clear.
Although
Currently vista.vim only supports show the tags in some file, but some users would like to show all the tags in a project(liuchengxu/vista.vim#14). I tried to add In a word, how to extract
|
With
You can customize the output with
See http://docs.ctags.io/en/latest/news.html?highlight=--_xformat#customizing-xref-output . If you don't want to write a parser,
|
Thank you! I would try the |
@KazuakiM, isn't it possile to link ctags to libjansson.so.4? |
@liuchengxu, tags file, the native format of ctags can be parserd with functions in readtags.c. |
@masatake
|
@KazuakiM Good catch, I missed the help. JSON support needs the option $ brew reinstall --with-jansson universal-ctags/universal-ctags/universal-ctags |
The name of the parser: any one
The command line you used to run ctags:
The content of input file:
$ git clone https://github.com/liuchengxu/vista.vim $ cd vista.vim $ ctags --options=NONE -R -x
The tags output you are not satisfied with:
I have no idea how to parse the output of
ctags -R -x
. I want to filter the tagname and scope from the output ofctags -R -x
, but don't know how to do properly.The tags output you expect:
It's viable if there is also a specific format for
ctags -R
:The version of ctags:
How do you get ctags binary:
brew install ctags
on macOSThe text was updated successfully, but these errors were encountered: