dominikh / go-mode.el

Emacs mode for the Go programming language
BSD 3-Clause "New" or "Revised" License
1.37k stars 209 forks source link

godoc to behave more like apropos-library #341

Closed microamp closed 4 years ago

microamp commented 4 years ago

It would be awesome if godoc (with godoc-use-completing-read set to t) behaved more like apropos-library (see below).

First, select a library, in this case, tramp.

2020-02-24-171052_1265x704_scrot

Choose a function called copy-tramp-file-name

2020-02-24-171111_1265x704_scrot

Pressing q will redirect the user back to the main tramp page.

Currently, our buffer looks like this (i.e. the output of go doc <lib>, in this case go doc json).

2020-02-24-171850_1264x704_scrot

There's currently no shortcut to select and view a specific type/function/etc. from this buffer. e.g. go doc json.Marshal

microamp commented 4 years ago

Related: https://github.com/golang/go/issues/34293

psanford commented 4 years ago

Thanks for opening this issue. I don't think the current maintainers have much bandwidth to implement this feature request. If someone really wants this I would suggest first implementing it as a separate package. That would allow people to start testing and using it immediately without first having to go through a full code review. Then we could have a discussion of if it makes more sense for the code to remain in a separate package or get integrated into the existing go-mode godoc functions.

I'm going to close this issue for now. Please let us know if you do implement this in a separate package so people can try it out.