Skip to content

Commit

Permalink
Add .projections.json configuration file
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Shane da Silva <[email protected]>
  • Loading branch information
lencioni authored and sds committed Dec 22, 2014
1 parent 087ce33 commit c8505e6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .projections.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"lib/overcommit/*.rb": {
"alternate": "spec/overcommit/{}_spec.rb",
"type": "source"
},
"spec/overcommit/*_spec.rb": {
"alternate": "lib/overcommit/{}.rb",
"type": "test"
}
}
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
be `quiet` by default
* Switch `TravisLint` pre-commit hook from deprecated `travis-lint` gem to
`travis` gem
* Add .projections.json configuration file

## 0.20.0

Expand Down

0 comments on commit c8505e6

Please sign in to comment.