Skip to content

Commit b5f8474

Browse files
authored
Merge pull request #203 from vim-volt/devel
Release v0.3.3
2 parents 8f2139f + f6eda39 commit b5f8474

File tree

1,101 files changed

+1335
-146589
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,101 files changed

+1335
-146589
lines changed

.appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ clone_folder: c:\gopath\src\github.com\vim-volt\volt
77

88
environment:
99
GOPATH: c:\gopath
10-
MYGODIR: C:\go19
10+
GOROOT: C:\go19
1111
VIM_URL: http://vim-jp.org/redirects/koron/vim-kaoriya/vim80/oldest/win64/
1212

1313
install:
14-
- set PATH=%GOPATH%\bin;%MYGODIR%\bin;%PATH%
14+
- set PATH=%GOPATH%\bin;%GOROOT%\bin;%PATH%
1515
- echo %PATH%
1616
- echo %GOPATH%
1717
- go version

CMDREF.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Usage
6262
Quick example
6363
$ volt get tyru/caw.vim # will install tyru/caw.vim plugin
6464
$ volt get -u tyru/caw.vim # will upgrade tyru/caw.vim plugin
65-
$ volt get -l -u # will upgrade all installed plugins
65+
$ volt get -l -u # will upgrade all plugins in current profile
6666
$ VOLT_DEBUG=1 volt get tyru/caw.vim # will output more verbosely
6767
6868
$ mkdir -p ~/volt/repos/localhost/local/hello/plugin
@@ -80,7 +80,7 @@ Description
8080
8181
Repository List
8282
{repository} list (=target to perform installing, upgrading, and so on) is determined as followings:
83-
* If -l option is specified, all installed vim plugins (regardless current profile) are used
83+
* If -l option is specified, all plugins in current profile are used
8484
* If one or more {repository} arguments are specified, the arguments are used
8585
8686
Action
@@ -118,8 +118,8 @@ Repository path
118118
4. http://{site}/{user}/{name}
119119
120120
Options
121-
-l use all installed repositories as targets
122-
-u upgrade repositories
121+
-l use all plugins in current profile as targets
122+
-u upgrade plugins
123123
```
124124

125125
# volt list
@@ -173,9 +173,6 @@ Structures
173173
// lock.json structure compatibility version
174174
"version": <int64>,
175175
176-
// Unique number of transaction
177-
"trx_id": <int64>,
178-
179176
// Current profile name (e.g. "default")
180177
"current_profile_name": <string>,
181178
@@ -186,9 +183,6 @@ Structures
186183
// "git" (git repository) or "static" (static repository)
187184
"type": <string>,
188185
189-
// Unique number of transaction
190-
"trx_id": <int64>,
191-
192186
// Repository path like "github.com/vim-volt/vim-volt"
193187
"path": <string>,
194188
@@ -217,12 +211,17 @@ Description
217211

218212
```
219213
Usage
220-
volt migrate [-help]
214+
volt migrate [-help] {migration operation}
221215
222216
Description
223-
Perform migration of $VOLTPATH/lock.json, which means volt converts old version lock.json structure into the latest version. This is always done automatically when reading lock.json content. For example, 'volt get <repos>' will install plugin, and migrate lock.json structure, and write it to lock.json after all. so the migrated content is written to lock.json automatically.
224-
But, for example, 'volt list' does not write to lock.json but does read, so every time when running 'volt list' shows warning about lock.json is old.
225-
To suppress this, running this command simply reads and writes migrated structure to lock.json.
217+
Perform miscellaneous migration operations.
218+
See detailed help for 'volt migrate -help {migration operation}'.
219+
220+
Available operations
221+
lockjson
222+
converts old lock.json format to the latest format
223+
plugconf/config-func
224+
converts s:config() function name to s:on_load_pre() in all plugconf files
226225
```
227226

228227
# volt profile

Gopkg.lock

Lines changed: 1 addition & 98 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
# version = "2.4.0"
2222

2323

24-
required = ["github.com/golang/dep/cmd/dep"]
25-
2624
[[constraint]]
2725
name = "gopkg.in/src-d/go-git.v4"
2826
version = "=v4.0.0-rc15"

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@ Command
6666
build [-full]
6767
Build ~/.vim/pack/volt/ directory
6868
69-
migrate
70-
Convert old version $VOLTPATH/lock.json structure into the latest version
69+
migrate {migration operation}
70+
Perform miscellaneous migration operations.
71+
See 'volt migrate -help' for all available operations
7172
7273
self-upgrade [-check]
7374
Upgrade to the latest volt command, or if -check was given, it only checks the newer version is available
@@ -205,7 +206,9 @@ You can update all plugins as follows:
205206
$ volt get -l -u
206207
```
207208

208-
`-l` works like all installed plugins are specified (the repositories list is read from `$VOLTPATH/lock.json`).
209+
`-l` works like all plugins in current profile are specified (the repositories list is read from `$VOLTPATH/lock.json`).
210+
If you do not use profile feature, or `enable` and `disable` commands, you can
211+
think that `-l` specifies all plugins what you have installed.
209212
`-u` updates specified plugins.
210213

211214
Or, update only specified plugin(s) as follows:
@@ -249,7 +252,7 @@ Normally `volt build` synchronizes correctly, but if you met the bug, try `volt
249252
If you want to install set of plugins which you have installed by `volt get`, you can use `volt get -l`.
250253

251254
```
252-
$ volt get -l # install plugins listed in $VOLTPATH/lock.json
255+
$ volt get -l # install missing plugins in current profile in $VOLTPATH/lock.json
253256
```
254257

255258
First, you have to manage the following files under `$VOLTPATH`.
@@ -416,6 +419,8 @@ You can create a vimrc & gvimrc file for each profile:
416419
* vimrc: `$VOLTPATH/rc/<profile name>/vimrc.vim`
417420
* gvimrc: `$VOLTPATH/rc/<profile name>/gvimrc.vim`
418421

422+
NOTE: If the path(s) exists, `$MYVIMRC` and `$MYGVIMRC` are set. So `:edit $MYVIMRC` does not open generated vimrc (`~/.vim/vimrc`), but above vimrc/gvimrc.
423+
419424
This file is copied to `~/.vim/vimrc` and `~/.vim/gvimrc` with magic comment (shows error if existing vimrc/gvimrc files exist with no magic comment).
420425

421426
And you can enable/disable vimrc by `volt profile use` (or you can simply remove `$VOLTPATH/rc/<profile name>/vimrc.vim` file if you don't want vimrc for the profile).

_scripts/update-cmdref.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ import (
1111
)
1212

1313
func main() {
14-
os.Exit(Main())
14+
os.Exit(doMain())
1515
}
1616

1717
// Update CMDREF.md "volt help" output in the first code block (lines surrounded by ```)
18-
func Main() int {
18+
func doMain() int {
1919
if len(os.Args) <= 1 {
2020
fmt.Fprintln(os.Stderr, "[WARN] Specify CMDREF.md path")
2121
return 1

_scripts/update-readme.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ import (
1212
)
1313

1414
func main() {
15-
os.Exit(Main())
15+
os.Exit(doMain())
1616
}
1717

1818
// Embeds "volt help" output in the first code block (lines surrounded by ```)
1919
// of README.md
20-
func Main() int {
20+
func doMain() int {
2121
if len(os.Args) <= 1 {
2222
fmt.Fprintln(os.Stderr, "[WARN] Specify README.md path")
2323
return 1

0 commit comments

Comments
 (0)