3 ms·
Machine-verifiable TODO items sounds interesting. If this comment was bait, it worked. Where're some examples I can look at?
by carussell 12y ago
Machine-verifiable TODO items sounds interesting. If this comment was bait, it worked. Where're some examples I can look at?
- dllthomas 12y agoI don't have much relevant posted anywhere. The gist is "git grep TODO", but I do a little extra work to make it extra convenient with vim's quickfix buffer: search: @git grep -n "$$PATTERN" todo: @PATTERN=TO''DO make search \ | sed -n 's/\([^ \t]*\)\(.*TO''DO \(([0-9]*)\)\):\?\(.*\)/\1 \3 \2\4/p' | sort -k 2 Running ":make todo" in vim then pulls everything of the form "TODO (1):" out, sorts according to priority (the value in parentheses), and dumps them into my quickfix buffer (including the locations), which I can easily step through. I also surface changes in the todo list as comments in my git commit buffer, for reference.