happypeter / happygrep Goto Github PK
View Code? Open in Web Editor NEWdamn easy command line search
damn easy command line search
now If I want to search .tag
, I have to use
happygrep "\.tag"
all of the below fails to work
happygrep ".tag"
happygrep \.tag
happygrep .tag
since happygrep is for beginners, we should make sth like this
ack -Q .tag
and set this as default, and when we do want to use regexp, mark it with a option tag
happygrep --regexp "\.tag"
Check also: vim easygrep: http://www.vim.org/scripts/script.php?script_id=2438
root@Ubuntu-Server:/happygrep# make/happygrep#
gcc happygrep.c -o happygrep -lncursesw -Wall
happygrep.c: In function ‘init’:
happygrep.c:483:9: warning: variable ‘x’ set but not used [-Wunused-but-set-variable]
int x, y;
^
root@Ubuntu-Server:
now I use happygrep keyword ignore_stuff
to get things ignored, this is bad format, try
happygrep keyword --exclude file1 dir2/
or maybe even better, read stuff from somefile like .gitignore
happygrep keyword --exclude-list .gitignore
Firstly, I have to say, this is a very exciting tool. Although we could still find some thing not so good, but that's nothing.
I used this tools for days, and I really love it. Besides this, i want some new 'commands' to give it more fun.
Basicly, I guess peter wanna navigate the view the same as vi, and that's exactly what i wanna too.
So, i added these commands as below, all to make a faster navigation:
In fact, I wanna more, such as, 'g' to go to the first line of the total buffer, and 'G' to go to the last line of the total buffer, not finished yet.
Also, I have read the issues above, but to be honest, i don't that care about the exact match or what, mostly because the size of my code is not that big.
But, I find that when I use happygrep, sometimes it runs too slow. I read the code, and maybe this is because the realloc function inside the while loop? I don't have that much time to debug this, and just use it for now.
Finally, thanks the author again, and I'm very interesting on this tool.
I'm a new fish to program under Linux system, and also to the git thing. I still don't get how to contribute to an interesting project. So, if U wanna, contact me by email or so. I'll be very happy to here from u.
[root@dfrz-virtual-machine happygrep-master]#make
gcc happygrep.c -o happygrep -lncursesw
/tmp/cckqFXS3.o: In function main': happygrep.c:(.text+0x633): undefined reference to
libiconv_open'
happygrep.c:(.text+0x692): undefined reference to `libiconv_open'
collect2: ld 返回 1
make: *** [all] 错误 1
我用CentOS,支持么
$happygrep
wrong number of arguments
the msg shall be more infomative
在哪里下载libncursesw.5.dylib 我没有找到~~多谢
若文件路径太长,会占据行号栏的空间,界面凌乱。
Ack
is also nice, but only for source code search, so happygrep will be happygrep, never happyack.
hello
[RPathN] xxx: happygrep.c:993: navigate_view: Assertion `0 <= view->lineno && view->lineno < view->lines' failed.
already at first line 已放弃 (核心已转储)
book git:(gh-pages) ✗ brew cask install happygrep
==> Downloading https://github.com/happypeter/happygrep/releases/download/v1.0/h
==> Note: running "brew update" may fix checksum errors
Error: SHA2 mismatch
Expected: 572c3eaa6b0609c05b85c6934155b8e8943d28464438d9ec2838efbf6e29e863
Actual: 05c5f33142c9ea4559b20ca421c76fa0b081ae3edc0d6e3b8f7c3dd8ba21a518
Archive: /Library/Caches/Homebrew/happygrep-1.0.zip
To retry an incomplete download, remove the file above.
根据README.md的指导完成了安装,目前程序在~/bin/xxx目录下存在。请问这个xxx是什么?可替代否?
下面那个命令中的xxx呢?也可替代否?现在完全是无法使用的情况中,求指导。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.