Skip to content
forked from ncgrep/ncgrep

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

f8ttyc8t/ncgrep

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 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.

Join the chat at https://gitter.im/ncgrep/Lobby

Demo

ncgrep demo

Feature

  • The matching results are presented in a graphical interface and provide interactivity.
  • Currently it supports files ending in .php, .h, .c, .cpp suffixes.

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:

  • KEY_UP up
  • KEY_DOWN down
  • KEY_ENTER open file in vim
  • q quit
  • k up
  • j down
  • CTRL-u half page up
  • CTRL-d half page down
  • o open file in vim
  • CTRL-e return to the group interface

Install

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...

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++ 98.2%
  • Makefile 1.8%