Skip to content
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

Show message when using :GoDef and opening a new buffer #1385

Merged
merged 1 commit into from
Aug 5, 2017
Merged

Show message when using :GoDef and opening a new buffer #1385

merged 1 commit into from
Aug 5, 2017

Conversation

arp242
Copy link
Contributor

@arp242 arp242 commented Jul 25, 2017

Instead of:

vim-go: SUCCESS

We now show:

vim-go: /usr/lib/go/src/strings/strings.go:340:6: defined here as func strings.Join

Showing the output of the command is optional; if we remove it we get the old
behaviour with the output of an :edit command:

"/usr/lib/go/src/strings/strings.go" [readonly] 777L, 20971C

Showing the command output seemed more useful to me personally though,

I moved the custom_cb() invocation after the message; this has no real effect
as far as I can see (it's used in only two places) and it allows us output
messages after the SUCCESS.

Fixes #1207

Instead of:

	vim-go: SUCCESS

We now show:

	vim-go: /usr/lib/go/src/strings/strings.go:340:6: defined here as func strings.Join

Showing the output of the command is optional; if we remove it we get the old
behaviour with the output of an `:edit` command:

	"/usr/lib/go/src/strings/strings.go" [readonly] 777L, 20971C

Showing the command output seemed more useful to me personally though,

I moved the `custom_cb()` invocation after the message; this has no real effect
as far as I can see (it's used in only two places) and it allows us output
messages after the SUCCESS.

Fixes #1207
@fatih
Copy link
Owner

fatih commented Aug 5, 2017

Seams a fair improvment. Merging it but gonna change the print to:

  call go#util#EchoSuccess(fnamemodify(a:data[0], ":t"))

as the file name might be very long .

@fatih fatih merged commit 250c639 into fatih:master Aug 5, 2017
@arp242 arp242 deleted the godef-msg branch September 10, 2017 07:14
@arp242 arp242 restored the godef-msg branch September 10, 2017 07:14
@arp242 arp242 deleted the godef-msg branch September 10, 2017 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants