Skip to content
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

Tree view for ctags #462

Closed
jiangyinzuo opened this issue Jun 25, 2023 · 1 comment
Closed

Tree view for ctags #462

jiangyinzuo opened this issue Jun 25, 2023 · 1 comment

Comments

@jiangyinzuo
Copy link

Is your feature request related to a problem? Please describe.

The tagbar.vim plugin supports parsing ctags and provides a tree view functionality.

image

In vista.vim, we can also obtain a tree view using LSP (such as :Vista coc).

image

Indeed, :Vista ctags provides a flat view rather than a tree view.
image

So is it possible to support tree view for :Vista ctags

Describe the solution you'd like

Perhaps we can utilize the fields in the ctags file format to obtain the tree view.

a	foo.cpp	/^	int a = 1;$/;"	v	namespace:foo::bar::baz1::baz2	typeref:typename:int
bar	foo.cpp	/^namespace foo::bar {$/;"	n	namespace:foo	file:
bar	foo.cpp	/^namespace foo::bar::baz3 { }$/;"	n	namespace:foo	file:
baz1	foo.cpp	/^	namespace baz1::baz2 {$/;"	n	namespace:foo::bar	file:
baz2	foo.cpp	/^	namespace baz1::baz2 {$/;"	n	namespace:foo::bar::baz1	file:
baz3	foo.cpp	/^namespace foo::bar::baz3 { }$/;"	n	namespace:foo::bar	file:
foo	foo.cpp	/^namespace foo::bar {$/;"	n	file:
foo	foo.cpp	/^namespace foo::bar::baz3 { }$/;"	n	file:
zz	foo.cpp	/^	void zz() {}$/;"	f	namespace:foo::bar::baz1::baz2	typeref:typename:void

@liuchengxu
Copy link
Owner

The tree view is already supported by :Vista ctags, there is some space for improvement though (#320).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants