Skip to content

NCGREP, which is based on ncurses library to provide user interface, is a grep tool for searching text on target directory.

Notifications You must be signed in to change notification settings

timofonic-otherdevstuff/ncgrep

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ncgrep

NCGREP, which is based on ncurses library to provide user interface, is a grep tool for searching text on target directory.

Demo

ncgrep demo

Usages

ncgrep "grep" . 3
  • . character stands for the current dirname
  • 3 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:

  • q quit
  • j down
  • k up
  • o open file in vim
  • KEY_ENTER open file in vim
  • CTRL-e return to the group interface

Install

Firstly, you should install the dependency library:

# MAC
brew install ncurses
# CentOS
yum install ncurses

Then, compile & link:

g++ -c files.cpp -o files.o
g++ -c grep.cpp -o grep.o
g++ -c tui.cpp -o tui.o
g++ -c data.cpp -o data.o
g++ -g main.cpp -o ncgrep files.o grep.o tui.o data.o -lncurses

TO BE CONTINUED...

About

NCGREP, which is based on ncurses library to provide user interface, is a grep tool for searching text on target directory.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 99.0%
  • Shell 1.0%