~kris/dots

srice

ref: f5fc91419850ee5f2652bdce0dcc214de18b4a22 srice/.local/bin/todo -rwxr-xr-x 359 bytes
f5fc9141 — Kris Yotam add wallpapermenu script (was untracked); auto-detect output so cw works on any machine 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