Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(16033)

Issue 10564043: code review 10564043: misc/vim: Handle import paths with periods in Godoc

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 10 months ago by glts
Modified:
10 years, 3 months ago
CC:
dsymonds, gobot, golang-codereviews
Visibility:
Public.

Description

misc/vim: Handle import paths with periods in Godoc This patch makes the Godoc Vim plugin correctly split package names with periods in them. Fixes issue 5656.

Patch Set 1 #

Patch Set 2 : diff -r 3899cce24466 https://code.google.com/p/go #

Patch Set 3 : diff -r 3899cce24466 https://code.google.com/p/go #

Total comments: 6

Patch Set 4 : diff -r edd229b63fa4 https://code.google.com/p/go #

Patch Set 5 : diff -r 8648a001bbca https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -4 lines) Patch
M misc/vim/plugin/godoc.vim View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 31
glts
Hello golang-dev@googlegroups.com (cc: kamil.kisiel@gmail.com), I'd like you to review this change to https://code.google.com/p/go
10 years, 10 months ago (2013-06-25 19:53:03 UTC) #1
kisielk
LGTM, tested it out in a variety of ways and it seems to work. Should ...
10 years, 10 months ago (2013-06-25 21:16:40 UTC) #2
kisielk
I actually found one more case that's not covered here: If you have an import ...
10 years, 10 months ago (2013-06-25 23:21:13 UTC) #3
gobot
R=dsymonds (assigned by dsymonds)
10 years, 10 months ago (2013-06-26 05:43:15 UTC) #4
dsymonds
https://codereview.appspot.com/10564043/diff/6001/misc/vim/plugin/godoc.vim File misc/vim/plugin/godoc.vim (right): https://codereview.appspot.com/10564043/diff/6001/misc/vim/plugin/godoc.vim#newcode12 misc/vim/plugin/godoc.vim:12: " Open the relevant Godoc for either the word[s] ...
10 years, 10 months ago (2013-06-26 05:45:48 UTC) #5
glts
On 2013/06/25 23:21:13, kisielk wrote: > I actually found one more case that's not covered ...
10 years, 10 months ago (2013-06-26 19:40:53 UTC) #6
glts
https://codereview.appspot.com/10564043/diff/6001/misc/vim/plugin/godoc.vim File misc/vim/plugin/godoc.vim (right): https://codereview.appspot.com/10564043/diff/6001/misc/vim/plugin/godoc.vim#newcode12 misc/vim/plugin/godoc.vim:12: " Open the relevant Godoc for either the word[s] ...
10 years, 10 months ago (2013-06-26 19:44:58 UTC) #7
glts
Hello dsymonds@golang.org (cc: dsymonds@golang.org, gobot@golang.org, golang-dev@googlegroups.com, kamil.kisiel@gmail.com), Please take another look.
10 years, 10 months ago (2013-06-26 19:46:11 UTC) #8
dsymonds
https://codereview.appspot.com/10564043/diff/6001/misc/vim/plugin/godoc.vim File misc/vim/plugin/godoc.vim (right): https://codereview.appspot.com/10564043/diff/6001/misc/vim/plugin/godoc.vim#newcode103 misc/vim/plugin/godoc.vim:103: let words = split(word, '\.\ze[^/]*$') On 2013/06/26 19:44:58, glts ...
10 years, 10 months ago (2013-06-27 01:33:19 UTC) #9
kisielk
On 2013/06/27 01:33:19, dsymonds wrote: > https://codereview.appspot.com/10564043/diff/6001/misc/vim/plugin/godoc.vim > File misc/vim/plugin/godoc.vim (right): > > https://codereview.appspot.com/10564043/diff/6001/misc/vim/plugin/godoc.vim#newcode103 > ...
10 years, 10 months ago (2013-06-27 06:52:52 UTC) #10
dsymonds
On 27 June 2013 16:52, <kamil.kisiel@gmail.com> wrote: > That's not entirely true, for example if ...
10 years, 10 months ago (2013-06-27 07:00:16 UTC) #11
kortschak
On Thu, 2013-06-27 at 17:00 +1000, David Symonds wrote: > It's still discouraged to do ...
10 years, 10 months ago (2013-06-27 07:19:34 UTC) #12
dsymonds
On 27 June 2013 17:19, Dan Kortschak <dan.kortschak@adelaide.edu.au> wrote: > On Thu, 2013-06-27 at 17:00 ...
10 years, 10 months ago (2013-06-27 07:27:40 UTC) #13
glts
On 2013/06/27 01:33:19, dsymonds wrote: > https://codereview.appspot.com/10564043/diff/6001/misc/vim/plugin/godoc.vim > File misc/vim/plugin/godoc.vim (right): > > https://codereview.appspot.com/10564043/diff/6001/misc/vim/plugin/godoc.vim#newcode103 > ...
10 years, 10 months ago (2013-06-27 07:56:44 UTC) #14
kortschak
On Thu, 2013-06-27 at 17:27 +1000, David Symonds wrote: > Like I said, that's a ...
10 years, 10 months ago (2013-06-27 10:27:19 UTC) #15
dsymonds
Aah, I understand now. What about splitting on the last of [/.]? Something like split(word, ...
10 years, 10 months ago (2013-06-27 10:46:02 UTC) #16
kortschak
Say we have an import of "code.google.com/p/repo.sub". This split still does not get us the ...
10 years, 10 months ago (2013-06-27 11:34:15 UTC) #17
glts
On 2013/06/27 10:46:02, dsymonds wrote: > Aah, I understand now. > > What about splitting ...
10 years, 10 months ago (2013-06-27 20:18:38 UTC) #18
glts
Hello dsymonds@golang.org, kamil.kisiel@gmail.com, dan.kortschak@adelaide.edu.au (cc: dsymonds@golang.org, gobot@golang.org, golang-dev@googlegroups.com), Please take another look.
10 years, 10 months ago (2013-06-27 20:20:13 UTC) #19
glts
For me this fixes issue 5656. However, :Godoc may need some work in the future. ...
10 years, 10 months ago (2013-06-27 20:22:42 UTC) #20
dsymonds
Let me think about this over the weekend. This has grown organically and is not ...
10 years, 10 months ago (2013-06-28 07:52:55 UTC) #21
dsymonds
Okay, here's what I think should happen: - If you invoke :Godoc with no arguments, ...
10 years, 10 months ago (2013-07-01 06:33:37 UTC) #22
glts
On 2013/07/01 06:33:37, dsymonds wrote: > Okay, here's what I think should happen: > > ...
10 years, 10 months ago (2013-07-01 18:43:14 UTC) #23
dsymonds
On 2 July 2013 04:43, <676c7473@gmail.com> wrote: > On 2013/07/01 06:33:37, dsymonds wrote: >> >> ...
10 years, 10 months ago (2013-07-02 05:21:43 UTC) #24
glts
On 2013/07/02 05:21:43, dsymonds wrote: > On 2 July 2013 04:43, <mailto:676c7473@gmail.com> wrote: > > ...
10 years, 10 months ago (2013-07-02 17:37:22 UTC) #25
mattn
[snip] How about this: :Godoc code.google.com/p/go.tools/go/types#Config :Godoc encoding/json#Unmarshal Or separate arguments: :Godoc encoding/json json.Unmarshal
10 years, 7 months ago (2013-09-27 02:20:35 UTC) #26
kisielk
If you're going to do that, make it like the command line version. The second ...
10 years, 7 months ago (2013-09-27 05:26:49 UTC) #27
ioe
On 2013/09/27 02:20:35, mattn wrote: > :Godoc encoding/json json.Unmarshal I like this version most, because ...
10 years, 7 months ago (2013-09-27 08:36:05 UTC) #28
mattn
Is this closable?
10 years, 4 months ago (2013-12-18 05:57:30 UTC) #29
gobot
Replacing golang-dev with golang-codereviews.
10 years, 4 months ago (2013-12-20 16:26:00 UTC) #30
dsymonds
10 years, 3 months ago (2014-01-03 00:48:48 UTC) #31
R=close

See my previous few comments in the review thread if you want to resurrect this
CL.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b