vgrep

A user friendly pager for grep.

TLDR

Recursively search the current directory for a pattern and cache it

$ vgrep [search_pattern]
copy


Display the contents of the cache
$ vgrep
copy


Open the "4th" match from the cache in the default editor
$ vgrep --show [4]
copy


Display a context of "3" lines for each match in the cache
$ vgrep --show=context[3]
copy


Display the number of matches for each directory in the tree
$ vgrep --show=tree
copy


Display the number of matches for each file in the tree
$ vgrep --show=files
copy


Start an interactive shell with cached matches
$ vgrep --interactive
copy

Copied to clipboard