diff --git a/README.md b/README.md index a85f806ca75fe1657a5aeaa6e43027fda9d573e1..c15c5a3cefccf1b8f0ce7b9966d2a7d24a61dfcc 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,8 @@ # crep - like grep but for code ## What is crep? -If grep and etags had a baby. - -Note: you should use ctags or etags. Seriously. This is an experimental thingy. +If grep and etags had a baby. You should use ctags or etags. Seriously. This is +an experimental thingy. - https://en.wikipedia.org/wiki/Ctags - https://www.emacswiki.org/emacs/TagsFile diff --git a/main.c b/main.c index 70781287aa8d4973f8edb14e67c1025eb9242fb4..38cbd42563905eb58f6a94cb1b1f11d496aa3086 100644 --- a/main.c +++ b/main.c @@ -1,3 +1,13 @@ +// IMMEDIATE TODO & IDEAS: +// - Add language specific filter (by default all but it can also passed +// with -lpy -lc -lrb) which would only parse python, c and ruby files. +// - By default its case insensitive but with passing -cs it tells that +// all matching should be done in case sensitive way. +// - Add pthreads and check how grep does it's magic. +// - Add Levenshtein distance for matching and expose distance as arg with +// something like -d5 which would allow distance of 5 on a match. +// - Allow DEBUG to be provided as environmental variable. + #include #include #include