greeep
v1.0.8
Published
This is a Grep-like application.
Downloads
2
Readme
greeep
This is a Grep-like application.
caution: This app will generate a sqlite file in the current directory.
install
npm install -g greeepusage
1. Create a .greeepignore
$ vi .greeepignoreThe description rules are exactly the same as for ".gitignore".
Toptal | Gitignore.io is recommended for automatic file generation.
2. You can register your frequently used regular expressions.
$ greeep -a 'TODO:|FIXME:|HACK:'
$ greeep -a 'REVIEW:|CHANGED:|NOTE:|WARNING:'
$ greeep -a 'require\(.*\)'3. You do not need to register to use it.
$ greeep 'TODO:|FIXME:|HACK:'
$ greeep 'REVIEW:|CHANGED:|NOTE:|WARNING:'
$ greeep 'require\(.*\)'※ Cannot be used with '-a' or '-d'.
4. You can run it from among the registered ones.
$ greeep
? Pick a regexp •
❯ TODO:|FIXME:|HACK:
REVIEW:|CHANGED:|NOTE:|WARNING:
require\(.*\)5. You can delete the ones you no longer need.
$ greeep -d
? Pick a regexp •
❯ TODO:|FIXME:|HACK:
REVIEW:|CHANGED:|NOTE:|WARNING:
require\(.*\)6. You can change the directory.
$ greeep -c ~/work/projectB7. Only the first matching line of the file can be displayed.
$ greeep -f8. It is case-insensitive and can be used for matching.
$ greeep -i