Ncurses-based text search tools ncgrep and ncursesncgrep

Source: Internet
Author: User

Ncurses-based text search tools ncgrep and ncursesncgrep
Background

As a VIM party, in daily work development, grep is often used for keyword search to quickly locate files.

Use grep for text search

However, there are two efficiency problems in this process:

It can be imagined that when the search content result set is large, it is painful.

So we can use the Ag plug-in Vim to search for it?

Yes, but he only solves the Interaction Problem. The pain points of result set grouping are still not solved.

Use ag in vim for text search

Ideas

When using Eclipse and other IDE for global text search, it has great advantages in loading effect (lazy loading) visualization.

Search for global files in Eclipse

 

We hope to provide a similar search tool based on the linux system. Advantages (functions:

  • The result set can be directly interacted.
  • The result set can be displayed in groups.
  • The result set is loaded in "lazy loading" mode.

What is a class library based on the text graphic interface? I have learned about software similar to VIM and htop on the Internet.NcursesClass Library.

Project

Project name: ncgrep

Why? Because ngrep and egrep are available. (Note: ncgrep does not reference grep source code)

Project Demo

Ncgrep demo

Code

Http://github.com/ncgrep/ncgrep

Similar projects

NGP youtube-> https://www.youtube.com/watch? V = MesYBY8271s

Summary

Tools are generated for efficiency and are expected to bring benefits.

 

Address: http://blog.ihuxu.com/ncgrep-based-on-ncurses-global-regular-search-tool/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.