Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/paulpls/todo

Drop-in utility for automatically generating project to-do lists
https://github.com/paulpls/todo

automation python-utility qol utility

Last synced: 27 days ago
JSON representation

Drop-in utility for automatically generating project to-do lists

Awesome Lists containing this project

README

        

# To-Do List Automator
Author: [paulpls](https://github.com/paulpls)
License: [FSF](LICENSE.md)

## About
Use this utility to automatically generate a to-do list by searching for patterns in the provided file paths. In return, you'll get a nicely formatted markdown file with direct links to your code, enabling you to pick up right where you left off.

## Dependencies
- python >= 3.6
- GNU `grep`
- GNU `rm`

## Instructions
- Copy `todo.py` to your project's top-level directory (or elsewhere if you're feeling brave)
- Edit the file to customize the output:
* [files](todo.py#L40): List of file or directory paths to search (allows `*` globs)
* [patterns](todo.py#L44): List of search keyords
* [header](todo.py#L49): Output file header
* [outpath](todo.py#L50): Output file path
- Run the program: `python todo.py`

## Example
Given the file `example.py`:
```py
01 def do_something():
02 # TODO make this do some stuff
03 ...
```

With `TODO` included in the search terms, the output file will look something like this:
```markdown
# Todo List

### TODO
- [example.py](example.py#L2) make this do some stuff

...
```

## Wontfix
- Currently only outputs a single line matching each pattern. Additional functionality to include entire multiline commments is not planned at this time.