A simple and user-friendly command-line to-do list application that helps you manage your tasks efficiently. This project is created by 💜 from Zigao Wang and is licensed under the MIT License.
- Add tasks with optional categories and priorities.
- Mark tasks as complete.
- Edit existing tasks.
- Delete tasks.
- Clear all tasks.
- Search tasks by keyword.
- Prioritize tasks with three levels: high, medium, low.
- Export tasks to a PDF file.
- Help menu for detailed instructions on using each feature.
-
Clone the repository:
git clone https://github.com/ZigaoWang/to-do.git cd to-do
-
Create a virtual environment and activate it:
python -m venv .venv source .venv/bin/activate # On Windows use `.venv\Scripts\activate`
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the application:
python todo_script.py
-
Follow the on-screen instructions to manage your tasks. Use the help menu for detailed usage of each feature by pressing '0'.
- 1. ➕ Add task: Add a new task. Optionally, set a category and priority.
- 2. ✔️ Complete task: Mark a task as complete by entering its number.
- 3. ✏️ Edit task: Modify the description of an existing task by entering its number.
- 4. ❌ Delete task: Remove a task by entering its number.
- 5. 🗑️ Clear all tasks: Remove all tasks from the list.
- 6. 🔍 Search task: Look for tasks containing a specific keyword.
- 7. ⭐ Prioritize task: Assign a priority (high, medium, low) to a task by entering its number.
- 10. 📄 Export to PDF: Export tasks to a PDF file.
- 11. 🚪 Exit: Close the application.
- 0. 🆘 Help: Display detailed instructions for each feature.
The help menu provides detailed instructions on how to use each feature. It can be accessed at any time by selecting option '0' from the main menu.
After running the application, you'll see the main menu:
1. ➕ Add task 6. 🔍 Search task
2. ✔️ Complete task 7. ⭐ Prioritize task
3. ✏️ Edit task 10. 📄 Export to PDF
4. ❌ Delete task 11. 🚪 Exit
5. 🗑️ Clear all tasks 0. 🆘 Help
--------------------------------------------------
Choose an option (0-11):
- Install the CLI tool:
pip install --editable .
After installation, you can use the todo
command to manage your to-do list:
-
Add a task:
todo add --task "Buy groceries" --priority high
-
View tasks:
todo view
-
Complete a task:
todo complete 1
-
Delete a task:
todo delete 2
-
Clear all tasks:
todo clear
-
Search for tasks:
todo search --keyword "groceries"
-
Prioritize a task:
todo prioritize 1 --priority medium
-
Export tasks to a PDF:
todo export --filename tasks.pdf
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
For any inquiries, please contact Zigao Wang at [[email protected]].