rg

    Recursive text search for MoonX.

    Download zip
    Author
    Version
    0.1.3
    License
    MIT AND Apache-2.0
    Last updated
    8 hours ago
    Downloads
    65

    #rg

    Search text with regular expressions, globs and ignore rules through MoonX.

    #Usage

    moonx cli/rg -n 'TODO' . moonx cli/rg -F -g '*.mbt' 'StringBuilder' . printf 'hello\n' | moonx cli/rg 'hello' -

    Supply an explicit path, or - for stdin. Unicode regex matching, ignore files, file-type filters and JSON output are supported.

    #Common options

    OptionDescription
    --regexp PATTERN, -e PATTERNA pattern to search for.
    --filesPrint each file that would be searched.
    --fixed-strings, -FTreat all patterns as literals. Default: false.
    --no-fixed-stringsDisable --fixed-strings.
    --glob GLOB, -g GLOBInclude or exclude file paths.
    --help, -hShow help.
    --hidden, -.Search hidden files and directories. Default: false.
    --no-hiddenDisable --hidden.
    --ignore-case, -iCase insensitive search.
    --jsonShow search results in a JSON Lines format.
    --no-jsonDisable --json.
    --line-number, -nPrint one-based line numbers. Off by default on every output destination; -n enables them explicitly.
    --version, -VShow the version.

    Use --help for the complete option list.

    #Notes

    • PCRE2, compressed search (-z), one-filesystem traversal and byte-based DFA cache limits are unsupported.
    • Search runs on one thread without memory mapping. Multiline mode may retain the complete input.
    • Automatic terminal detection is unavailable: color, headings and line numbers require explicit options. Use --help for the full option list.

    See the compatibility guide for the supported profile.

    Source Files