Giter Club home page Giter Club logo

todo's Introduction

TODO list in Python / Rust

Simple command line application which allows to store and keep track of a todo-list. Currently it is implemented in Python and in the futur hopefully in Rust as well.
I actually use the Pyton version quite a bit as it is really handy to just quickly write down something you have to do. I also recommend creating a shortcut to the program and placing it somewhere accessible, like the desktop.

Content

Python version

This code is very old and badly written. I am very sorry. Please don't look at it.
It also probably only works on Windows.

Storage

The todo's are stored in the JSON file todo.json in the same directory as todo.py.
With some important todo's it looks like this:

{
    "todo": [
        "pet cat",
        "pet cat again"
    ],
    "done": [
        "cuddle with cat"
    ]
}

Commands

The program has 6 simple commands:

command(s) + argument(s) Function
list or l Clears the screen and lists all unfinished todo's (by index) and finished todo's.
add or a + todo Adds a new todo to the list. The value added to the list is the value passed as the todo argument.
For example add pet cat would add the todo "pet cat" to the list.
remove or r + todo or index Removes the specified todo from the list entirely, meaning either from the list of finished todo's or from the list of unfinished todo's.
The todo can either be specified via the argument todo with its name, or via the argument index with its index in the list of unfinished todo's.
For example remove 1 would remove the first todo from the list of unfinished todo's.
finish or f + todo or index Moves the specified todo from the list of unfished todo's to the list of finished todo's.
The todo can either be specified via the argument todo with its name, or via the argument index with its index in the list of unfinished todo's.
For example finish pet cat would finish the todo pet cat.
delete or del Deletes the whole todo list. This is not reversable!
quit or q Saves all changes (if any) and quits the program. You need to press Enter again after the program quits to close the terminal.

There is also another "secret" command: open or o which opens the the JSON file where all the todo's are stored in Notepad. There you could modify the list yourself, for example if you mistyped a todo or if you want to change the order.
This should only be done if you know JSON, as you could corrupt your whole list.

Rust version

As the program gets implemented in Rust i will update this section.

Licensing

This work is licensed under CC BY-SA 4.0

todo's People

Contributors

magame19 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.