Todoer
is a command-line tool written in Go that processes a markdown file containing a to-do list. It separates completed and uncompleted tasks, and moves completed tasks to a specific date section in the file. This helps in organizing tasks based on their completion date.
- Parses a markdown file for tasks.
- Separates completed and uncompleted tasks.
- Moves completed and aborted tasks to a specific date section in the file.
- Configurable to move tasks to either the current day or the previous day based on the current time.
todoer [options] [file]
-h
,--help
: Show the help message.
todoer tasks.md
Tasks in the markdown file should follow this format:
- [ ] Task description
- [x] Completed task description
~~- [ ] Aborted task description~~
-
Clone the repository:
git clone https://github.com/danielsrojo/todoer.git
-
Change to the project directory:
cd todoer
-
Build the project:
go build -o todoer
-
Move the executable to a directory in your
PATH
:mv todoer /usr/local/bin/
- The tool reads the specified markdown file.
- It parses tasks, separating them into completed and uncompleted tasks.
- Completed and aborted tasks are moved to a section labeled with the current date or the previous day if run before a specific time (9 AM).
- The updated content is written back to the file.
- [ ] Task 1
~~- [ ] Task 2~~
- [x] Task 3
- [x] Task 4
---
# Monday, 1 January
- [x] Task 0
- [ ] Task 1
---
# Tuesday, 2 January
~~- [ ] Task 2~~
- [x] Task 3
- [x] Task 4
# Monday, 1 January
- [x] Task 0