konradsz / igrep

Interactive Grep
MIT License
641 stars 17 forks source link

A few suggestions #61

Open c02y opened 8 months ago

c02y commented 8 months ago

Thank you for the project, just discovered it from other's link.

I'm considering replacing ripgrep with igrep (only install igrep), don't know if it is possible so far. But I have a few suggestions for igrep to make it better.

  1. Support ripgrep's -w option which only show matches surrounded by word boundaries
  2. Support ripgrep's --sort=SORTBY option which sorts the result according to SORTBY like path
  3. Support ripgrep's --no-ignore option which ignores files such as .gitignore
  4. Support bindings of fold/unflod for matches of current file or fold/unfold all the other files
  5. Support filter by regex/path, which show only the typed regex paths in the tui window, or jump to the specific file based on typed regex
  6. Support horizontal/vertical context viewer options which can be turned on by default after tui window is loaded
konradsz commented 8 months ago

Hi, happy to hear that you enjoy igrep. Thanks for your suggestions, I like most (all?) of them, so I will work on implementation soon.

Bad3r commented 8 months ago

@konradsz thats awesome! Do you also plan to introduce an easy way to replace all occurrences like in https://github.com/acheronfail/repgrep?

konradsz commented 8 months ago

@Bad3r Support for replacing results wouldn't be a simple extension of what is currently there, and I believe it wouldn't align with the original idea behind igrep - an interactive way to examine grep results. I'm not definitively saying "no" but I don't want to commit to this at the moment.