Skip to content

Commit

Permalink
v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
konradsz committed Mar 8, 2022
1 parent 0229304 commit 2b5a4ac
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## v0.3.0 (2022-03-08)
***
- use $EDITOR as a fallback variable
- fix Initial console modes not set error on Windows
- make igrep available on Homebrew

## v0.2.0 (2022-03-02)
***
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "igrep"
version = "0.2.0"
version = "0.3.0"
authors = ["Konrad Szymoniak <szymoniak.konrad@gmail.com>"]
license = "MIT"
description = "Interactive Grep"
Expand Down
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# igrep - Interactive Grep
Runs [grep](https://crates.io/crates/grep) ([ripgrep's](https://github.com/BurntSushi/ripgrep/) library) in the background, allows interactively pick its results and open selected match in text editor of choice (vim by default).

`igrep` supports macOS and Linux. Windows support will be considered.
`igrep` supports macOS and Linux. Reportedly it works on Windows as well.

<img src="./assets/demo.gif"/>

Expand Down Expand Up @@ -35,7 +35,7 @@ Runs [grep](https://crates.io/crates/grep) ([ripgrep's](https://github.com/Burnt
-V, --version Print version information.
```

### Keybindings
## Keybindings
| Key | Action |
|------------------------------------------------|------------------------------------------------|
| `q`, `Esc` | Quit |
Expand All @@ -50,7 +50,7 @@ Runs [grep](https://crates.io/crates/grep) ([ripgrep's](https://github.com/Burnt
| `dw` | Filter out all matches in current file |
| `F5` | Re-run search |

### Specifying text editor
## Specifying text editor
`igrep` supports vim, neovim/nvim and nano.
To specify the editor, use one of the following (listed in order of their precedence):
- `--editor` option,
Expand All @@ -59,5 +59,13 @@ To specify the editor, use one of the following (listed in order of their preced

Higher priority option overrides lower one. If neither of these options is set, vim is used as a default.

### Installation
`igrep` binaries can be download from [GitHub](https://github.com/konradsz/igrep/releases) (for Linux and MacOS). One can also build and install it from source using Rust toolchain by running: `cargo install igrep`.
## Installation
### Prebuilt binaries
`igrep` binaries can be download from [GitHub](https://github.com/konradsz/igrep/releases) (for Linux and MacOS).
### Homebrew
```
brew tap konradsz/igrep https://github.com/konradsz/igrep.git
brew install igrep
```
### Build from source
Build and install from source using Rust toolchain by running: `cargo install igrep`.

0 comments on commit 2b5a4ac

Please sign in to comment.