Skip to content

Commit c8505e6

Browse files
lencionisds
authored andcommitted
Add .projections.json configuration file
Editor plugins, like @tpope's vim-projectionist, can make use of this configuration file to enable easy jumping between "alternate" files, among other features. For example, with this configuration and vim-projectionist installed, you can now be editing a hook and execute `:A` to jump to that hook's spec file. This will save some time when working with this project. https://github.com/tpope/vim-projectionist Change-Id: I0500e1e6aad52e1f4da44c4ce674215a2b31f36e Reviewed-on: http://gerrit.causes.com/45429 Tested-by: jenkins <jenkins@brigade.com> Reviewed-by: Shane da Silva <shane.dasilva@brigade.com>
1 parent 087ce33 commit c8505e6

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.projections.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"lib/overcommit/*.rb": {
3+
"alternate": "spec/overcommit/{}_spec.rb",
4+
"type": "source"
5+
},
6+
"spec/overcommit/*_spec.rb": {
7+
"alternate": "lib/overcommit/{}.rb",
8+
"type": "test"
9+
}
10+
}

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
be `quiet` by default
77
* Switch `TravisLint` pre-commit hook from deprecated `travis-lint` gem to
88
`travis` gem
9+
* Add .projections.json configuration file
910

1011
## 0.20.0
1112

0 commit comments

Comments
 (0)