7.0 KiB
7.0 KiB
1.8 (unplanned)
IMPROVEMENTS:
:GoDocaccepts arguments now which are passed directly togodoc. So usages like:GoDoc flagworks again (it was changed in previous versions [gh-894]
BUG FIXES:
- Escape
#characters when opening URL's, as it's handled as alternative file in vim [gh-895] - Fix typos in
doc/vim-go.txtabout usages of syntax highglightings [gh-897]
1.7.1 (June 7, 2016)
BUG FIXES:
- Fixed typo in
syntax/go.vimfile fromgo:go_highlight_fieldstog:go_highlight_fields
1.7 (June 7, 2016)
FEATURES:
- New
:GoImplcommand that generates method stubs for implementing an interface. Checkout the demo to see how it works. [gh-846] godefsupport is added back as an optional setting. By default:GoDefstill usesguru, but can be changed togodefby adding the option:let g:go_def_mode = 'godef'[gh-888]- New
<C-w><C-]>and<C-w>]>shortcuts to split current window and jumpt to the identifier under cursor. [gh-838] - New syntax setting"
g:go_highlight_fieldsthat highlights struct field references [gh-854]
IMPROVEMENTS:
- Invoking
:GoRenamenow reloads all files to reflect new changes automatically [gh-855] - Calling
:GoTestCompiledoes not create any temporary binary file anymore [gh-879] - Enable passing the
-tagsflag to:GoDef. Now you can pass build tags to:GoDefvia:GoGuruTagsorg:go_guru_tags - Internal refactoring to use custom
system()function that wraps both the standardsystem()call andvimproc. Now all system calls will take advantage and will usevimprocif installed. [gh-801] - Completion enables now
gocode'sautobuildandpropose-builtinsflags automatically. With these settings packages will be automatically build to get the freshest completion candidates and builtin keywords will be showed as well. By defaults these settings are enabled. Settings can be disabled/enabled viag:go_gocode_autobuildandg:go_gocode_propose_builtins. [gh-815] - Added new
http.HandlerFuncsnippets withhfandhhfshortcuts [gh-816] - Added new
ExampleandBenchmarksnippets withexampleandbenchmarkshortcuts [gh-836] - Search tool binaries first in
GOBINand then inPATHas most of vim-go users installs it toGOBINmostly [gh-823] - Improve
gurubased commands by providing automatically detected GOPATHS, such asgb,godepto be used if possible [gh-861] - Add
<Plug>(go-imports)mapping to make it assignable to other keys [gh-878] - Increase compatibility with tcsh [gh-869]
- Improve
:GoInstallBinariesfor GOPATH's which don't have packages that work well withgo get -u. We have a newg:go_get_updatesetting to disable it. By default it's enabled. [gh-883]
BUG FIXES:
- Fix
(go-freevars)plug mapping to work as in visual mode instead of noncompatible normal mode [gh-832] - Commands based on guru now shows a more meaningful error message instead of just showing the exit status (-1)
- Fix
:GoCoverageaccidently enabling syntax highlighting for users who don't use syntax (i.e syntax off) [gh-827] - Fix
:GoCoveragecolors to work for xterm as well [gh-863] - Fix commenting out block of texts for Go templates (filetype gothtmltmpl) [gh-813]
- Fix
:GoImplementsfailing because of an empty scope definition. Now we default to current package to make it usable. - Fix
:GoPlayposting to non HTTPS url. [gh-847] - Fix escaping the filenames for lint and motion commands [gh-862]
- Fix escaping the filename to
:GoDefcompletely for tcsh [gh-868] - Fix showing SUCCESS for
go testrelated commands if no test files are available [gh-859]
1.6 (April 25, 2016)
FEATURES:
- New
CHANGELOG.mdfile (which you're reading now). This will make it easier for me to track changes and release versions :GoCoverageis now highlighting the current source file for covered/uncovered lines. If called again it runs the tests and updates the annotation. Use:GoCoverageClearto clear the coverage annotation. This is a pretty good addition to vim-go and I suggest to check out the gif that shows it in action: https://twitter.com/fatih/status/716722650383564800 [gh-786]:GoCoverageTogglejust like:GoCoveragebut acts as a toggle. If run again it clears the annotation.:GoCoverageBrowseropens a new annotated HTML page. This is the old:GoCoveragebehavior [gh-786]:GoDocuses now gogetdoc to lookup and display the comment documentation for the identifier under the cursor. This is more superior as it support looking up dot imports, named imports and imports where package name and file name are different [gh-782]guru support:oracleis replaced by the new toolguru.oracle.vimis therefore renamed toguru.vim. I've also refactored the code to make it much more easier to maintain and add additional features in future (such as upcoming JSON decoding). vim-go is now fully compatible withguru. Please be sure you have installedguru. You can easily do it with:GoInstallBinaries.:GoDefuses nowguru definitionunder the hood instead ofgodef. This fixes the following issues: 1. dot imports 2. vendor imports 3. folder != package name imports. The toolgodefis also deprecated and not used anymore.:GoDefdoes have now history of the call stack. This means you can easily jump back to your last entry. This can be done with the new command:GoDefPopor the mappingCTRL-t. To see the stack and jump between entries you can use the new command:GoDefStack, which shows the list of all stack entries. To reset the stack list anytime you can call:GoDefStackClear[gh-776]
IMPROVEMENTS:
:GoCoverageis executed asynchronously when used within Neovim [gh-686]:GoTestFuncsupports now testable examples [gh-794]:GoDefcan jump to existing buffers instead of opening a new window (split, vsplit or tab). By default it's disabled to not break the old behavior, can be enabled withlet g:go_def_reuse_buffer = 1
BUG FIXES:
- Fix not showing documentation for dot, named and package/file name being different imports [gh-332]
- Term mode: fix closing location list if result is successful after a failed attempt [gh-768]
- Syntax: fix gotexttmpl identifier highlighting [gh-778]
- Doc: fix wrong wording for
go-runmapping. It's for the whole main package, not for the current file
BACKWARDS INCOMPATIBILITIES:
:GoDefdoesn't accept any identifier as an argument. This is not suported viaguru definitionand also was not widely used either. Also with this, we significantly simplified the existing def.vim code:GoOracleScopeand:GoOracleTagsare deprecated in favor of:GoGuruScopeand:GoGuruTags. Alsog:go_oracle_scopeis renamed tog:go_guru_scopeg:go_guru_scopeaccepts a variable in type oflistinstead ofstring. i.g:let g:go_guru_scope = ["github.com/fatih/structs", "golang.org/x/tools/..."]
Previous releases
Previous changelogs can be found here: https://github.com/fatih/vim-go/releases