acheronfail / repgrep

An interactive replacer for ripgrep that makes it easy to find and replace across files on the command line.
Apache License 2.0
257 stars 4 forks source link

`repgrep` indicator should read `.ripgreprc` or some other fix #63

Closed cpkio closed 1 year ago

cpkio commented 2 years ago

The arrow indicator does not align with selected lines on searches with context switch: 2021-10-04_08-30-52

acheronfail commented 1 year ago

Just had a quick look at this, and an easy way to reproduce it is:

# inside this repository
cargo run -- '8..11\)]\)' ./src/replace.rs -A1

When running it this way, you can see the cursor gets out of alignment whenever there's an empty line in the interface. I'll have to investigate why this happens. :thinking:

acheronfail commented 1 year ago

As a temporary workaround, you can use C-v when running rgr to render whitespace and control character, this fixes it.

In the meantime, I'll try to get a fix out.