Browse Source

todolist: get all TODO marks of current git repository

master
Maxim Likhachev 5 years ago
parent
commit
30c26304ee
  1. 1
      README.md
  2. 4
      calculator
  3. 10
      todolist

1
README.md

@ -78,6 +78,7 @@ will create the symbolic link for each script in the \<path> directory.
- [doctools2man](doctools2man) converts doctool to man pages. - [doctools2man](doctools2man) converts doctool to man pages.
- [how](how) shows dev cheat sheets using [cheat.sh](https://cheat.sh). - [how](how) shows dev cheat sheets using [cheat.sh](https://cheat.sh).
- [robodoc2html](robodoc2html) converts a documentation in the robodoc format into html. - [robodoc2html](robodoc2html) converts a documentation in the robodoc format into html.
- [todolist](todolist) shows all `TODO` notes in current git repository.
- [utable](utable) shows a Unicode table. - [utable](utable) shows a Unicode table.
### Git ### Git

4
calculator

@ -1,8 +1,6 @@
#!/bin/bash #!/bin/bash
#TODO: #TODO: EUR -> RUB
# EUR
# RUB
vars=( $(echo {a..z}) ) vars=( $(echo {a..z}) )
count=-1 count=-1

10
todolist

@ -0,0 +1,10 @@
#!/bin/bash
# Find all TODO: marks in current git repository
[ -n "$1" ] && cd "$1"
if git rev-parse --show-toplevel &>/dev/null; then
grep -n -R "^[[:space:]]*[#/\"-]*[[:space:]]*TODO:"
fi
Loading…
Cancel
Save