Opening one of the file locations from the previous example may look as follows: Vgrep can open the indexed file locations in an editor specified by the EDITOR environment variable. Results of the last search are cached, so running vgrep without a new query will load previous results and operate on them.īy default, the output will be written to less to make browsing large amounts of data more comfortable. All non-vgrep flags and arguments will be passed down to grep. On a technical level, vgrep serves as a front-end to grep or git-grep when invoking vgrep inside a git tree and uses less for displaying the results. The basic functionality of vgrep is to perform textual searches. On other systems, you can build and install vgrep manually via make build and make install.You can install vgrep on Fedora, openSUSE, archlinux, Gentoo, and on Mac OS via MacPorts and Homebrew.Feedback and patches are always welcome! Install Instructions Please, feel free to copy, improve, distribute and share. vgrep is inspired by the ancient cgvg scripts but extended to perform further operations such as listing statistics of files and directory trees or showing the context lines before and after the matches. Vgrep is a pager for grep, git-grep, ripgrep and similar grep implementations, and allows for opening the indexed file locations in a user-specified editor such as vim or emacs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |