-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
GoCallers, GoCallee, GoCallStack : Exlude test code in search #1843
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
Comments
@vimalk78 it's not possible to change the output of these commands, because that is how |
Thanks a lot Fatih. |
created the issue |
You can filter the location list. Add the cfilter plugin that comes with vim:
Call GoCallers on some word and then filter the location list with:
You could set up a command that does it for you. I can't seem to make it work without the sleep, since vim doesn't seem to detect the location list until certain amount of time has passed. If anyone has a better solution, feel free to reply.
If you want to jump immediately to the location list, you can add Ideally, that should be supported by Guru, but the solution above is a good temporary solution, I think. |
Uh oh!
There was an error while loading. Please reload this page.
What did you do? (required. The issue will be closed when not provided.)
:GoCallers
What did you expect to happen?
return all the callers of this function
What happened instead?
ALL callers were returned
Configuration (MUST fill this out):
vim-go version:
master branch, upto commit 1b8d099
(how to find the version btw ?)
vimrc
you used to reproduce (use a minimal vimrc with other plugins disabled; do not link to a 2,000 line vimrc):Vim version (first three lines from
:version
):go version
):go version go1.10.2 linux/amd64
go env
):Is it possible to exclude test code while searching for GoCallers, GoCallee, GoCallStack'.
because not only it takes longer to finish the call, it also results more results
The text was updated successfully, but these errors were encountered: