GoSublime icon indicating copy to clipboard operation
GoSublime copied to clipboard

MG|GS /Doc

Open DisposaBoy opened this issue 14 years ago • 8 comments

mg/doc is currently just a stub implementation to allow design of gs/doc .

mg/doc currently supports only the expression pkgname.Funcname but the design(general interaction) of the goto definition and doc hint functionality in gs/doc ignoring a bit of styling is complete (direct #21 and #31 here)

  • infer expression given only the values for row/col or offset into src
    • done
  • search all types and vars in all packages not just top-level functions in import packages
    • partially complete - types are not resolved
  • implement doc browser to quickly find all definitions in GOPATH and GOROOT
    • done
  • offer function parameter hint as you type - this would allow truncating the completion when it gets too long (ST2 truncates it in a weird way, but there's no way for me to know how wide the completion pop-up can be)

DisposaBoy avatar Jun 07 '12 05:06 DisposaBoy

Is "Show documentation hint" currently supported for getting help on var.Method() where var is a standard Go library type? Currently, I'm getting "GsDoc: no docs found", with my HomeBrew installation of Go.

hansstimer avatar Jun 23 '13 19:06 hansstimer

not currently, no. Only pkg.X is supported

DisposaBoy avatar Jun 24 '13 07:06 DisposaBoy

not currently, no. Only pkg.X is supported

Is this still the case?

tamird avatar Jun 29 '15 20:06 tamird

Yeah, is this still the case? I'm hitting the same problems.

@tamird nice seeing you here too.

diogomonica avatar Jul 07 '15 17:07 diogomonica

Thanks for all the work on this; definitely +1 to this feature.

bportnoy avatar Jul 31 '15 21:07 bportnoy

@diogomonica the solution is to use something that uses godef/oracle for symbol lookup. I'm using https://github.com/ironcladlou/GoTools

tamird avatar Aug 07 '15 21:08 tamird

I can right click on a method name and the mouse context menu shows "Goto Definition" as the first option. But the "Cmd-. Cmd-g" (on Mac) does not work. What is the recommended way to configure it or re-enable the shortcut which was so helpful? Thanks!

dmitris avatar Jan 28 '16 14:01 dmitris

F12

cloudapex avatar Apr 11 '16 05:04 cloudapex