Git Product home page Git Product logo

todo_lib's People

Contributors

vladimirmarkelov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

todo_lib's Issues

Dispaly done.txt

Now there is no way to show archived todos (except setting done.txt it as todo.txt file). It would be good to add an option to load done.txt instead of todo.txt and disable all edit features.

Threshold date

Add support for threshold date. It exists in todo-txt library but is not exposed in todo_lib. Should work in the same way as due date does

Date of completion not appearing directly after the x

It seems that the library does not fully comply with the todo.txt format when a task is completed.

It does implement Rule 1:
A task is complete if it starts with an x (case-sensitive and lowercase) followed directly by a space.

But it does not respect Rule 2, regarding the position of the completion date and the handling of priority for completed tasks.

(A) 2023-08-20 Test #ex_1
x (A) 2023-08-20 2023-08-20 Test #ex_2
x 2023-08-20 2023-08-20 Test #ex_3
x 2023-08-20 2023-08-20 pri:A Test #ex_4
x 2023-08-20 2023-08-20 (A) Test #ex_5

Currently a pending task (ex_1) is completed by just appending x (ex_2), whereas the format seems to expect the completion and creation dates to follow the completion flags, with the priority either deleted (ex_3) or transformed in a key:value (ex_4). Some apps also support just reordering the priority (ex_5).

ttdl is my favourite command line tool for todo.txt (thanks!), but this issue makes files not interoperable with other tools, in particular on surfaces where ttdl is less practical, like mobile phones (e.g. SwiftoDo).

Ideally:

  1. the library should implement the different completion modes and a default behaviour, for the loss of priority, key:value replacement or reordering of the priority, in both the done and undone functions.
  2. ttdl should allow to configure the preferred completion mode.

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.