Created
December 17, 2018 11:34
-
-
Save Tymek/ce5d0bd36ccccbd60505cd959c07e00d to your computer and use it in GitHub Desktop.
Find my TODOs in project and open first in VSCode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://stackoverflow.com/a/25042219 | |
git grep -l TODO \ | |
| xargs -n1 git blame -f -n -w \ | |
| grep "$(git config user.name)" \ | |
| grep TODO \ | |
| sed "s/.\{9\}//" \ | |
| sed "s/(.*)[[:space:]]*//" \ | |
| tee /dev/tty \ | |
| sed 's/\s.*$//' \ | |
| head -1 \ | |
| xargs code -g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment