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

[Feature] Add Listing symbols #3

Open
xdavidel opened this issue May 23, 2024 · 2 comments
Open

[Feature] Add Listing symbols #3

xdavidel opened this issue May 23, 2024 · 2 comments

Comments

@xdavidel
Copy link

I think we can achieve listing symbols for the current buffer / workspace pretty easily.
I found the following command and I think we can implement something similar in lua:

cscope -R -L -2 ".*" | awk -F ' ' '{print $2 "#" $1}' | sort | uniq

What do you think @dhananjaylatkar?

@dhananjaylatkar
Copy link
Owner

This command is very slow. Did you try it on a large codebase?

I remember using this cmd on linux source and it took more than 5mins.

@xdavidel
Copy link
Author

This command is very slow. Did you try it on a large codebase?

I remember using this cmd on linux source and it took more than 5mins.

Mmm I would say medium size...
I can try something bigger like Linux source.

I guess we can cache the result - since cscope database is static anyway.

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