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 Request: Open GoDoc #31
Comments
Since the docs are quite short, I would prefer an automatic popup (some kind of tooltip) which shows the 1-2 sentences above the function automatically. As far as I remember Eclipse and VS are doing the same with Java and C#. |
Yeah, that would work too. Perhaps something in the command palette to open the source for that function too (godoc has an option for opening a func's source) |
I'm not sure of how to do with by calling the command.
might work and is easy because I can simply gather all [\w.] before and after the cursor and split on the dot. Needless to say that will only work sometimes(rarely). It gets interesting when the package is aliased or not on the root, e.g net/http . The only way I can think to do it to parse the file to find out the actual variable etc. that's under the cursor, at least then we can also give the right info. AFAICT godoc pretty much does a search which returns loads of noise. regarding the command palette: This functionality would most likely go under GsPalette ctrl+shift+g all this stuff is a little way off though because I'm planning to migrate all the plugin functionality into github.com/DisposaBoy/MarGo which is lagging as I wait for things to settle down so I can depend on Go1. This also means the end of calling external commands more or less so I won't have to depend on tools doing what we want or hacking around stuff. |
Ok, sounds good:) |
I have ideas about implementing the full browser-based godoc style of browsing, but inside of sublime text. that's still in the experimental phase but the basic show documentation is now partially implemented (margo implementation is seerely lacking) but after the latest update you can access it by |
this issue is now being tracked as part of #62 |
Any progress on this? This would put SublimeText+GoSublime right up there with the best full-blown IDEs, but with Sublime performance :-) |
A popup link on mouseover would be great, similar to mousing over Java classes in Eclipse. |
Hi,
Would it be possible to add a command that would open godoc at package? Eg if I had 'fmt' written on the current line and I pressed ctrl-alt-g-d, it would open 'godoc fmt' in Sublime.
Or if I had 'fmt.Printf' written on the current line and pressed the command, it would open godoc fmt and then search for 'Printf'.
This'd be a huge help.
The text was updated successfully, but these errors were encountered: