~kris/dots

srice

ref: 75870dc6ce1e524c46a85157489f839161c9607c srice/.local/bin/todo -rwxr-xr-x 359 bytes
75870dc6 — Kris Yotam add cw symlink for wallpapermenu (short name matching its own docs) 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# todo -- find TODO/FIXME/HACK/XXX comments in codebase
# Usage: todo [path]
#        todo src/

dir="${1:-.}"
rg --no-heading --line-number --color=always \
   '(TODO|FIXME|HACK|XXX|BUG|OPTIMIZE|NOTE):?\s' "$dir" \
   --glob '!node_modules' --glob '!.git' --glob '!vendor' \
   --glob '!build' --glob '!dist' --glob '!target' 2>/dev/null |
   sort