Skip to content

anshulxyz/todo-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Why

I was using these note taking apps to write my tasks on the daily-pages. The problem was I wanted to see all the undone tasks until current-day. Which was possible in a pure text-file based solutions. The tasks were getting lost in many markdown files.

What

A command-line TUI ToDo app, that uses SQLite for storing tasks.

How

App is made using Rust. I am using cursive library for the TUI view, and using SeaORM as an ORM for SQLite.

Run

git clone https://github.com/anshulxyz/todo-rs/
cd todo-rs/
echo "DATABASE_URL='sqlite://tasks.sqlite?mode=rwc'" > .env
make run

Usage

  • Press q to quit the app.
  • Upon running the app, you will see all the undone tasks. And all the tasks you finished today.
  • Use arrow-keys to move up-and-down, press Enter or Space to mark a task done/undone
  • Press a to add a task.

Development

Install dev dependencies and run tests

make install-deps
make build
make test

Demo

Kapture.2022-07-12.at.02.32.03.mp4