<commit_before>[![Gem Version](https://badge.fury.io/rb/projectionist.svg)](http://badge.fury.io/rb/projectionist)
[![Build Status](https://travis-ci.org/glittershark/projectionist.svg?branch=master)](https://travis-ci.org/glittershark/projectionist)
[![Coverage Status](https://coveralls.io/repos/glittershark/projectionist/badge.png?branch=master)](https://coveralls.io/r/glittershark/projectionist?branch=master)
[![Code Climate](https://codeclimate.com/github/glittershark/projectionist.png)](https://codeclimate.com/github/glittershark/projectionist)
[![Dependency Status](https://gemnasium.com/glittershark/projectionist.svg)](https://gemnasium.com/glittershark/projectionist)

# Projectionist 

Quickly edit project files using the
[.projections.json](https://github.com/tpope/vim-projectionist) format

## Installation

    $ gem install projectionist

There's also a bash completion script, that you can install globally by running:

```bash
$ curl -OL
https://github.com/glittershark/projectionist/raw/master/completion.bash
```

or locally by downloading [this
file](https://github.com/glittershark/projectionist/raw/master/completion.bash)
and sourcing it in your `~/.bashrc`

Zsh completion is on the way!

## Usage

For ease of typing, the executable file for projectionist is `prj`.

Given a `.projections.json` file in the root of your project with the following
structure:

``` { "lib/**/*.rb": { "type": "lib" } } ```

The command to edit `lib/whatever/test.rb` would be:

    $ prj edit lib whatever/test

Note that there are two glob components here - `**` and `*`. When editing files,
these components are separated by a `/`
<commit_msg>Reference ZSH issue in README<commit_after>[![Gem Version](https://badge.fury.io/rb/projectionist.svg)](http://badge.fury.io/rb/projectionist)
[![Build Status](https://travis-ci.org/glittershark/projectionist.svg?branch=master)](https://travis-ci.org/glittershark/projectionist)
[![Coverage Status](https://coveralls.io/repos/glittershark/projectionist/badge.png?branch=master)](https://coveralls.io/r/glittershark/projectionist?branch=master)
[![Code Climate](https://codeclimate.com/github/glittershark/projectionist.png)](https://codeclimate.com/github/glittershark/projectionist)
[![Dependency Status](https://gemnasium.com/glittershark/projectionist.svg)](https://gemnasium.com/glittershark/projectionist)

# Projectionist 

Quickly edit project files using the
[.projections.json](https://github.com/tpope/vim-projectionist) format

## Installation

    $ gem install projectionist

There's also a bash completion script, that you can install globally by running:

```bash
$ curl -OL
https://github.com/glittershark/projectionist/raw/master/completion.bash
```

or locally by downloading [this
file](https://github.com/glittershark/projectionist/raw/master/completion.bash)
and sourcing it in your `~/.bashrc`

Zsh completion is [on the way!](https://github.com/glittershark/projectionist/issues/18)

## Usage

For ease of typing, the executable file for projectionist is `prj`.

Given a `.projections.json` file in the root of your project with the following
structure:

``` { "lib/**/*.rb": { "type": "lib" } } ```

The command to edit `lib/whatever/test.rb` would be:

    $ prj edit lib whatever/test

Note that there are two glob components here - `**` and `*`. When editing files,
these components are separated by a `/`

{'fraction_non_alphanumeric': 0.14626953700973164, 'fraction_numerical': 0.0005897965202005308, 'mean_word_length': 5.304832713754647, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 25, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5944736', 'n_tokens_mistral': 1145, 'n_tokens_neox': 1091, 'n_words': 236}