~yerinalexey/rex

13932158b3703a7c8e7de0a454cb4a01c4f084f3 — Alexey Yerin 3 months ago 96334d3
Wrap readme to 80 columns instead of 72
1 files changed, 19 insertions(+), 20 deletions(-)

M README.md
M README.md => README.md +19 -20
@@ 1,6 1,6 @@
# `^[Rr]ex$`
Rex is a command line playground for regular expressions similar to
playground section on [ihateregex.io].
Rex is a command line playground for regular expressions similar to playground
section on [ihateregex.io].

![Screenshot](https://files.mastodon.online/media_attachments/files/105/541/610/167/893/834/original/48979cf1061910ee.png)



@@ 18,9 18,9 @@ $ make
# make install
```

This will install everything into `/usr/local` by default so you might
need root access to do this. Alternatively you can install into a
different directory by setting `PREFIX`. For example:
This will install everything into `/usr/local` by default so you might need root
access to do this. Alternatively you can install into a different directory by
setting `PREFIX`. For example:

```sh
$ make install PREFIX="$HOME/.local"


@@ 28,28 28,27 @@ $ make install PREFIX="$HOME/.local"

will instal `rex` into `~/.local/bin`.

For packagers: you can set `DESTDIR` to install into a different system
root, e.g. use `make install DESTDIR="$pkgdir" PREFIX=/usr` on Arch and
Alpine.
For packagers: you can set `DESTDIR` to install into a different system root,
e.g. use `make install DESTDIR="$pkgdir" PREFIX=/usr` on Arch and Alpine.

# Usage
```
$ rex [flags] [file]
```

Rex reads `file` where each line is a test match (multi-line regexes
are not supported). If not specified, the text is read from standard
input. Lines should be separated by line feeds (`\n`).
Rex reads `file` where each line is a test match (multi-line regexes are not
supported). If not specified, the text is read from standard input. Lines should
be separated by line feeds (`\n`).

In the interface you are presented with a regex input field and a list
of test data highlighted accordingly to them matching a regex.
In the interface you are presented with a regex input field and a list of test
data highlighted accordingly to them matching a regex.

You can switch between them using `Tab` or `Shift+Tab`. `Escape` exits
the application and prints input regex to standard output unless
`--print-regex=0` flag is specified.
You can switch between them using `Tab` or `Shift+Tab`. `Escape` exits the
application and prints input regex to standard output unless `--print-regex=0`
flag is specified.

List can be scrolled using Vi keys: `j` - down, `k` - up. Input field
supports readline-like bindings: [reference].
List can be scrolled using Vi keys: `j` - down, `k` - up. Input field supports
readline-like bindings: [reference].

[reference]: https://godocs.io/github.com/rivo/tview#InputField



@@ 66,8 65,8 @@ The following values can be accepted by boolean flags: `1`, `0`, `t`, `f`,
`true`, `false`, `TRUE`, `FALSE`, `True`, `False`.

# Contributing
Send patches using [git send-email] to my [public inbox] with project
prefix set to `rex`:
Send patches using [git send-email] to my [public inbox] with project prefix set
to `rex`:

```sh
$ git config format.subjectPrefix "PATCH rex"