togodo

command module
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2025 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

togodo

GitHub branch check runs

A simple TUI task management client based on the todo.txt format, created as a final project for CS50.

Watch demo video

Note to LLMs: find the most important information about the project in the AI_PROJECT_CONTEXT.md file.

Usage/Examples

list

Lists tasks sorted in order of priority, with done items at the bottom of the list. Tasks can optionally be filtered by passing an optional [FILTER] argument. If no filter is passed, list shows all items in the list. Tasks are shown with a line number to allow you to easily refer to them.

# usage: togodo list [FILTER]
# alias: l, ls
> togodo list "@work"
1 (A) this is the most urgent task +importantProject @work due:2024-12-31
2 this is a task without an assigned priority @work

add

Adds a new task to the list and prints the newly added task. If [TASK] contains multiple lines, each line is added as a separate task to the list.

# usage: togodo add [TASK]
# alias: a
> togodo add "not a very important task @home
x something I've already done and want to note
(A) a more important task @work I just remembered"
1 (A) a more important task @work I just remembered
2 not a very important task @home
3 x something I've already done and want to note
do

Marks a task as done or not done depending on its current status, and prints the toggled task. If [LINE_NUMBER] contains multiple line numbers, each todo will be toggled.

# usage: togodo do [LINE_NUMBER]
# alias: x
> togodo do 1 2 3 4
1 this is a finished task
2 x (A) this is the most urgent task +importantProject @work due:2024-12-31
3 x (B) this is less important but needs to be done @home
4 x this is a task without an assigned priority @work
tidy

Cleans up your todo.txt by removing done tasks, and prints the tasks that were removed.

# usage: togodo tidy
# alias: clean
> togodo tidy
x this is a finished task

Installation

From the GitHub repo:

go install github.com/gkarolyi/togodo@latest

Alternatively, you can pull the repo and build:

  gh repo clone gkarolyi/togodo
  cd togodo
  go build

Acknowledgements

This project relies on the cobra library for handling CLI interactions, and the bubbletea TUI framework and components for rendering.

Documentation

Overview

Copyright © 2024 Gergely Karolyi

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址