NCGREP, which is based on ncurses library to provide user interface, is a grep tool for searching text on target directory.
- The matching results are presented in a graphical interface and provide interactivity.
- Currently it supports files ending in .php, .h, .c, .cpp suffixes.
ncgrep "grep" . 3
.
character stands for the current dirname3
It represents the level of search directory grouping, the three level directory as a group for text search
After entering the interactive interface, the commands are illustrated as followed:
KEY_UP
upKEY_DOWN
downKEY_ENTER
open file in vimq
quitk
upj
downCTRL-u
half page upCTRL-d
half page downo
open file in vimCTRL-e
return to the group interface
Firstly, you should install the dependency library:
# MAC
brew install ncurses
# CentOS
sudo yum install ncurses ncurses-devel
Then, compile & link:
# Just tested on Mac and Ubuntu
make
TO BE CONTINUED...