Recursive text search for MoonX.
moonx cli/rg@0.1.0 [OPTIONS] PATTERN PATH...| Option | Description |
|---|---|
| -e PATTERN / -f FILE / -F | Add patterns / read patterns / fixed-string search. |
| -i / -s / -S | Ignore case / respect case / smart case. |
| -w / -x / -v | Whole word / whole line / inverted matches. |
| -n / -N / --column / -b | Line numbers / no line numbers / columns / byte offsets. |
| -A N / -B N / -C N | After / before / surrounding context. |
| -o / -r TEXT | Only matches / replace matched text. |
| -c / --count-matches / -l / --files-without-match | Count lines / count matches / matching paths / nonmatching paths. |
| -g GLOB / --iglob GLOB / --hidden / --no-ignore | Filter paths and control hidden/ignored entries. |
| -t TYPE / -T TYPE / --type-list | Include / exclude file types / list types. |
| -L / --max-depth=N | Follow links / limit traversal depth. |
| -a / --binary / -0 / --null-data | Text / binary search / NUL path separators / NUL records. |
| -U / --multiline-dotall / --encoding=NAME | Multiline patterns / dot across lines / input encoding. |
| --json / --files / --sort=KEY / --sortr=KEY | JSON / list files / ascending or descending sorting. |
| --color=WHEN / --heading / -H / -I | Color / headings / include or suppress path labels. |
| --pre=COMMAND / --pre-glob=GLOB | Run an explicit preprocessor / select its inputs. |
| -q / --no-messages / --stats | Quiet / suppress diagnostics / statistics. |
| --help / --version | Show help / package version. |
moonx cli/rg@0.1.0 -n 'pattern' notes.txt
moonx cli/rg@0.1.0 --hidden -g '*.mbt' 'pattern' .
printf 'one\ntwo\n' | moonx cli/rg@0.1.0 -i 'ONE' -
moonx cli/rg@0.1.0 --files --sort path