-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Godoc improvement #782
Godoc improvement #782
Conversation
Nice, works wonderfully! Only thing is the new doc window is strangely small compared to the (50%?) height it used to have. I think this is intentional, as it seems full docs aren't listed anymore. Is this possible to turn on? (ie: open doc on a method, show that method in context on its package's full doc, as before?) |
No, gogetdoc doesnt work this way. It gets the doc right from the source code, where it isn't grouped by package. |
@jzacsh unfortunately it breaks the old way of showing the doc. The other way could be getting the package name and then pass it to |
Also there is a way to explore the docs: https://github.com/garyburd/go-explorer I think I have to re evaluate how we're going to want to explore go documentation in the future. Sometimes just getting a look at the current identifiers documentation is what we want. But sometimes we want to have a full disclosure to all documentation, to get a feeling what the remaining exported identifiers are, how the package can be used etc... So we have two behavior of how we want to explore documentation:
Based on this I think we should have the following commands:
Any feedback is welcome, I'm happy to discuss this. |
interesting, thanks for expanding @fatih! I think I only unconsciously expect full-doc view because I'm used to a To clarify: no.2 the thing that currently happens (when an identifier is easily found), right? Except that we actually scroll/jump down to the method's doc inside the full package doc? This is a nice mixture of both package-doc and method-doc. |
cc8464a
to
160bedc
Compare
This is the old approach, and will be replaced by the new approach. It's just for showing the documentation, like |
Fixes #332
This uses @zmb3's new excellent tool called
gogetdoc
. It solves most of our problem here. Just call:GoDoc
and it should show the documentation for the identifier under the cursor. Hitesc
orenter
to close the window easily.