Skip to content
martijnspitterPublic

About

Open-source TUI todo application written in Go.

Topics

Resources

Contributing

Stars

5 stars

Watchers

1 watching

Forks

Latest commit

 

History

100 Commits

Folders and files

Repository files navigation

Todo TUI

A powerful, terminal-based todo application built with Go. Manage your tasks efficiently without leaving the command line.

Go Version Release License

Todo TUI Screenshot Todo TUI Today Overview

Table of Contents

Features

  • 📋 Simple and intuitive terminal UI
  • 🏷️ Tag support for organizing related tasks
  • 🔄 Multiple status views (Open, Doing, Done, Archived)
  • 🚩 Priority levels (Low, Medium, High)
  • 📅 Due date support
  • 🔍 Filtering and searching capabilities
  • ⌨️ Keyboard-driven interface

Requirements

  • Terminal with support for TUI applications

Installation

macOS

 brew tap martijnspitter/tui-todo
 brew install tui-todo

Linux

Option 1: Debian/Ubuntu (DEB package)

# Download the latest .deb package
curl -L -o tui-todo.deb https://github.com/martijnspitter/tui-todo/releases/latest/download/tui-todo_Linux_x86_64.deb

# Install the package
sudo dpkg -i tui-todo.deb
# Install dependencies if needed
sudo apt-get install -f

# Run the application
todo

Option 2: Fedora/RHEL/CentOS (RPM package)

# Download the latest .rpm package
curl -L -o tui-todo.rpm https://github.com/martijnspitter/tui-todo/releases/latest/download/tui-todo_Linux_x86_64.rpm

# Install the package
sudo rpm -i tui-todo.rpm

# Run the application
todo

Option 3: Alpine Linux

# Download the latest .apk package
curl -L -o tui-todo.apk https://github.com/martijnspitter/tui-todo/releases/latest/download/tui-todo_Linux_x86_64.apk

# Install the package
sudo apk add --allow-untrusted tui-todo.apk

# Run the application
todo

Option 4: Snap Package

# Install directly from the Snap Store
sudo snap install tui-todo

# Run the application
todo

Option 5: Manual Installation

# Download the appropriate version for your system
curl -L -o tui-todo.tar.gz https://github.com/martijnspitter/tui-todo/releases/latest/download/tui-todo_Linux_$(if [ "$(uname -m)" = "x86_64" ]; then echo "x86_64"; else echo "$(uname -m)"; fi).tar.gz

# Extract the archive
tar -xzf tui-todo.tar.gz

# Move the binary to a directory in your PATH
sudo mv tui-todo /usr/local/bin/todo

# Make it executable
sudo chmod +x /usr/local/bin/todo

# Verify installation
todo --version

# Clean up
rm -f tui-todo.tar.gz

Windows

# Download the latest release (Run in PowerShell)
$url = "https://github.com/martijnspitter/tui-todo/releases/latest/download/tui-todo_Windows_x86_64.zip"
$output = "$env:TEMP\tui-todo.zip"
Invoke-WebRequest -Uri $url -OutFile $output

# Extract to a permanent location
$installDir = "$env:LOCALAPPDATA\Programs\tui-todo"
if (!(Test-Path $installDir)) { New-Item -ItemType Directory -Path $installDir | Out-Null }
Expand-Archive -Path $output -DestinationPath $installDir -Force

# Rename the binary
Rename-Item -Path "$installDir\tui-todo.exe" -NewName "todo.exe" -Force

# Add to PATH (requires admin if you want to add to system PATH)
$userPath = [Environment]::GetEnvironmentVariable("Path", "User")
if ($userPath -notlike "*$installDir*") {
    [Environment]::SetEnvironmentVariable("Path", "$userPath;$installDir", "User")
    Write-Host "Added to PATH. Please restart your terminal for changes to take effect."
}

# Clean up
Remove-Item $output

Write-Host "Installation complete! Type 'todo' in a new terminal window to start the application."

Keyboard Shortcuts

Navigation

Key Action
Tab / Right Next field/item
Shift+Tab / Left Previous field/item
Up / k Move up
Down / j Move down
g / Home Go to first item
G / End Go to last item
Enter Select/Confirm
Esc Go back/Cancel

Task Management

Key Action
Ctrl+N Create new todo
Ctrl+E Edit selected todo
Ctrl+D Delete selected todo
Ctrl+S Advance todo status
Ctrl+A Archive/Unarchive todo

Views and Filtering

Key Action
1 Switch to Open todos
2 Switch to Doing todos
3 Switch to Done todos
4 Switch to Archived todos
a Toggle archived todos
/ Filter by title/description
t Filter by tag

Application

Key Action
Ctrl+C Quit application
? Toggle help view
i Open about section

Configuration

Data Storage

Todo TUI stores your todos in a SQLite database located at

  • Linux:
    • $XDG_DATA_HOME/tui-todo/todo.sql (if XDG_DATA_HOME is set)
    • ~/.local/share/tui-todo/todo.sql (default)
  • macOS: ~/Library/Application Support/tui-todo/todo.sql
  • Windows:
    • %APPDATA%\tui-todo\todo.sql (if APPDATA is set)
    • ~\AppData\Roaming\tui-todo\todo.sql (default)

Screenshots

Task List View Main task view with different status tabs

Task Edit View Editing a task with tags and due date

Development

Building from Source

# Clone the repository
git clone https://github.com/martijnspitter/tui-todo.git
cd tui-todo

# Build the application
go build -o todo ./cmd/tui-todo

# Run the application
./todo

Running Tests

go test -v ./...

Development Setup

To set up a development environment:

# Clone the repository
git clone https://github.com/martijnspitter/tui-todo.git
cd tui-todo

# Install dependencies
go mod download

# Run the application in development mode
go run ./cmd/tui-todo/main.go

Collaboration

We welcome contributions to make Todo TUI even better! Please see our CONTRIBUTING.md guide for details on:

  • Our development workflow
  • Commit message guidelines
  • Pull request process
  • Code style standards

For a quick start:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes using conventional commits
  4. Push to your branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

We look forward to your contributions!

Development Workflow

  1. Make your changes and ensure they adhere to the project's style and standards.

  2. Run tests to make sure everything works:

    go test -v ./...
  3. Commit your changes with a descriptive message:

    git commit -m "Add feature: your feature description"
  4. Push to your fork:

    git push origin feature/your-feature-name
  5. Create a Pull Request by navigating to your fork on GitHub and clicking "New Pull Request".

Pull Request Guidelines

  • Keep PRs focused on a single feature or bugfix
  • Include a clear description of the changes and their purpose
  • Ensure all tests pass
  • Update documentation if necessary

Code Style

  • Follow standard Go conventions and idioms
  • Use meaningful variable and function names
  • Include comments for complex logic
  • Format code with go fmt before submitting

Issue Reporting

Found a bug or have a feature request? Please create an issue with:

  • A clear description of the bug or feature
  • Steps to reproduce (for bugs)
  • Expected vs. actual behavior (for bugs)
  • Any relevant screenshots or logs

Support and Community

  • Issues: Report bugs or request features through GitHub Issues
  • Discussions: Join our GitHub Discussions for questions and conversations
  • Updates: Follow the project on GitHub to receive notifications about updates and new releases

Troubleshooting

Common Issues

Issue: Application displays incorrectly with broken characters or formatting Solution: Ensure your terminal supports TUI applications and try setting TERM=xterm-256color environment variable

Issue: "Command not found" error after installation Solution: Make sure the installation directory is in your PATH environment variable. You might need to restart your terminal.

Issue: Database access errors Solution: Check that the application has write permissions to the directory where it stores data

Issue: Keyboard shortcuts not working as expected Solution: Some terminal emulators might capture certain key combinations. Try using alternative key bindings or configure your terminal to pass these key combinations through.

License

MIT License - See LICENSE for details.

About

Open-source TUI todo application written in Go.

Topics

Resources

Contributing

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages