A commandline utility that interprets .projections.json
files.
These files are used by vim-projectionist
, but as the author says:
there's nothing Vim-specific about the configuration. Once completed, this tool
will allow you to more easily integrate projections into your non-Vim text
editor.
I've chosen to write this utility in Go because I've never written Go before.
If you're interested in using Projectionist right now, this is not the program
for you. I recommend checking out vim-projectionist
if you're a Vim user,
or projectionist
if you're not a Vim user.
I expect the commandline interface to be used like this:
projectionist <command> [--config <projections.json>] <current-file>
Where --config
can be inferred based on the $PWD
.
Here's a more concrete example:
$ projectionist alternate app/models/book.rb
# returns: test/models/book_test.rb
Once this software has any working functionality I will provide a binary.
To build this software from source, you'll need:
- Go 1.18+
- Make*
* Recommended, but not required.
I recommend using Make to build from source:
$ make build
Once run, the binary will be built to build/projectionist
.
To develop and run tests against the source code you'll also need:
If you have all of the dependencies installed, you can use the Make to run tests:
$ make test
I have made no progress so far. I have one priority feature I'd like to implement so I can start using this tool day-to-day:
- Support alternates.
For example: If I'm in
app/models/book.rb
, my editor should be able to auto-navigate totest/models/book_test.rb
.