Giter Club home page Giter Club logo

treegrep's Introduction

treegrep

treegrep is a frontend for existing pattern matchers or a standalone pattern matcher which presents results in a tree format

tests release

Currently Suuported Backends

To Install

Cargo

cargo install treegrep

NetBSD

pkgin install treegrep

Releases

Download from releases

Manual

git clone https://github.com/4imothy/treegrep
cd treegrep
cargo build --release

Links

crates.io | GitHub | AUR | NetBSD

demo.mp4

--help Output

treegrep 0.1.3
by Timothy Cronin

A pattern matcher frontend or backend which displays results in a tree

tgrep [OPTIONS] <regex expression-positional|--regexp <regex expression>> [target-positional]

Arguments:
  [regex expression-positional]  specify the regex expression
  [target-positional]            specify the search target. If none provided, search the current directory.

Options:
  -e, --regexp <regex expression>  specify the regex expression
  -t, --target <target>            specify the search target. If none provided, search the current directory.
  -c, --count                      display number of files matched in directory and number of lines matched in a file if present
  -., --hidden                     search hidden files
  -n, --line-number                show line number of match if present
  -m, --menu                       open results in a menu to be edited with $EDITOR
                                   navigate through the menu using the following commands:
                                   - move up/down: k/j, p/n, up arrow/down arrow
                                   - move up/down with a bigger jump: K/J, P/N
                                   - move up/down paths: {/}, [/]
                                   - move to the start/end: g/G, </>, home/end
                                   - move up/down a page: ctrl + b/ctrl + f, pageup/pagedown
  -f, --files                      show the paths that have matches
      --links                      show linked paths for symbolic links
      --trim                       trim whitespace at the beginning of lines
      --pcre2                      enable PCRE2 if the searcher supports it
      --no-ignore                  don't use ignore files
      --max-depth <max-depth>      the max depth to search
      --threads <threads>          set the appropriate number of threads to use
      --max-length <max-length>    set the max length for a matched line
      --color <color>              set whether to color output [possible values: always, never]
  -s, --searcher <searcher>        executable to do the searching, currently supports rg  and tgrep
  -h, --help                       Print help
  -V, --version                    Print version

treegrep's People

Contributors

4imothy avatar 0323pin avatar kseistrup avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.