Giter Site home page Giter Site logo

todo's People

Contributors

dependabot[bot] avatar foobuzz avatar xu4wang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

todo's Issues

YYYY-MM-DD HH:MM:SS format

not passing YYYY-MM-DD HH:MM:SS format as a MOMENT argument because of the space between the date part and the time part.

Edit (Backward compatibility, 3.1.3 -> 3.2.1)

After I updated from version 3.1.3 to 3.2.1 I get this error on todo edit ..:

Traceback (most recent call last):
  File "/Users/blaw_blaw/Library/Python/3.7/bin/todo", line 8, in <module>
    sys.exit(main())
  File "/Users/blaw_blaw/Library/Python/3.7/lib/python/site-packages/todo/todo.py", line 128, in main
    result = dispatch(args, daccess)
  File "/Users/blaw_blaw/Library/Python/3.7/lib/python/site-packages/todo/todo.py", line 396, in dispatch
    return DISPATCHER[args['command']](args, daccess)
  File "/Users/blaw_blaw/Library/Python/3.7/lib/python/site-packages/todo/todo.py", line 218, in edit_task
    can_edit = daccess.take_editing_lock(tid)
  File "/Users/blaw_blaw/Library/Python/3.7/lib/python/site-packages/todo/data_access.py", line 653, in take_editing_lock
    """, (tid,))
sqlite3.OperationalError: no such column: editing

It seems that the schema of data.sqlite is changed in the new version without updating the old database.

Support for recurring tasks

Is there a way to set a task as recurring? I checked the user guide and could not find anything about this.

No such file or directory

Traceback (most recent call last):
  File "/home/juliano/.local/bin/todo", line 11, in <module>
    sys.exit(main())
  File "/home/juliano/.local/lib/python3.6/site-packages/todo/todo.py", line 154, in main
    current_version = get_installed_version()
  File "/home/juliano/.local/lib/python3.6/site-packages/todo/todo.py", line 168, in get_installed_version
    with open(VERSION_PATH, 'w') as version_file:
FileNotFoundError: [Errno 2] No such file or directory: '/home/juliano/.toduh/version'

Installation problem

after installing via pip, pip give me this error message:
WARNING: The script todo is installed in '/home/integral/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

im fairly new to linux and im a bit confused right now if its a mistake from me or a bug i dont know. Is this the right place to ask stuff ? Do i only need to move the installation to an place where my bash looks for it ?

thanks in advance.
greetings

Error After Install

Installed via pip and when typing in todo I get the below error.

Traceback (most recent call last):
  File "/usr/local/bin/todo", line 7, in <module>
    from todo import main
  File "/Library/Python/2.7/site-packages/todo.py", line 5, in <module>
    from datetime import datetime, timezone, timedelta
ImportError: cannot import name timezone

"todo history" is scattered if there are details in todo(s)

Todo history (132x24 terminal size) if there are some details attached.

$ todo history
id title                                created             start               deadline            priority context         status 
-- ------------------------------------ ------------------- ------------------- ------------------- -------- --------------- -------
 1 Install Webmin
Some details about... 2018-08-23 22:06:08                                                                         
 2 Install Samba                        2018-08-23 22:06:11                                                                         
 3 Install Squid
Or another proxy se... 2018-08-23 22:13:32                                                  web             DONE  

And if there is no detail text:

$ todo history
id title                                created             start               deadline            priority context         status 
-- ------------------------------------ ------------------- ------------------- ------------------- -------- --------------- -------
 1 Install Webmin                       2018-08-23 22:06:08                                                                         
 2 Install Samba                        2018-08-23 22:06:11                                                                         
 3 Install Squid                        2018-08-23 22:13:32                                                  web             DONE

Just don't print details on the same line as a title and everything will be OK.

Consider add autocomplete with `Tab`

When I use todo -d to mark my task done, I want to use Tab to autocomplete, but something happened like this:
screenshot from 2016-03-19 23 09 47

To make this tool prettier,please consider to add this function into the project.

running from source, sqlite3 "no column named content"

Just cloned todo, installed python3, test.py got no error, but when I tried to add one todo item, it complains "no column named content".

Do you know how should I fix this? Thanks.


WangXus-MacBook-Pro:source wangxu$ ./test.py
* Unit tests
..............
----------------------------------------------------------------------
Ran 14 tests in 0.010s

OK
WangXus-MacBook-Pro:source wangxu$ ./todo.py
WangXus-MacBook-Pro:source wangxu$ ./todo.py add "fix the stuff"
Traceback (most recent call last):
  File "./todo.py", line 5, in <module>
    main()
  File "/Users/wangxu/Documents/github/todo/source/todo/todo.py", line 128, in main
    result = dispatch(args, daccess)
  File "/Users/wangxu/Documents/github/todo/source/todo/todo.py", line 396, in dispatch
    return DISPATCHER[args['command']](args, daccess)
  File "/Users/wangxu/Documents/github/todo/source/todo/todo.py", line 173, in add_task
    id_ = daccess.add_task(title, content, context, options)
  File "/Users/wangxu/Documents/github/todo/source/todo/data_access.py", line 226, in add_task
    c.execute(query, values)
sqlite3.OperationalError: table Task has no column named content
WangXus-MacBook-Pro:source wangxu$ ls -al .toduh
total 64
drwxr-xr-x   4 wangxu  staff    128 Jul  7 12:23 .
drwxr-xr-x  10 wangxu  staff    320 Jul  6 21:40 ..
-rw-r--r--   1 wangxu  staff  28672 Jul  7 12:18 data.sqlite
-rw-r--r--   1 wangxu  staff      3 Jul  7 12:18 version
WangXus-MacBook-Pro:source wangxu$


timezone import issue

I'm getting the current error when trying to use the todo cli:

Python 2.7.11

Traceback (most recent call last):
  File "/usr/local/bin/todo", line 7, in <module>
    from todo import main
  File "/usr/local/lib/python2.7/site-packages/todo.py", line 5, in <module>
    from datetime import datetime, timezone, timedelta
ImportError: cannot import name timezone

Error in "todo edit" if no or wrong ID

In version 3.1.2 i get this errors if there are only two IDs:

[dramon@centos7 ~]$ todo edit 
Traceback (most recent call last):
  File "/usr/local/bin/todo", line 9, in <module>
    load_entry_point('todocli==3.1.2', 'console_scripts', 'todo')()
  File "/usr/local/lib/python3.6/site-packages/todo/todo.py", line 156, in main
    result = dispatch(args, daccess)
  File "/usr/local/lib/python3.6/site-packages/todo/todo.py", line 530, in dispatch
    return handler(args, daccess)
  File "/usr/local/lib/python3.6/site-packages/todo/todo.py", line 361, in edit_task
    tid = args['<id>'][0]
IndexError: list index out of range


[dramon@centos7 ~]$ todo edit 5
Traceback (most recent call last):
  File "/usr/local/bin/todo", line 9, in <module>
    load_entry_point('todocli==3.1.2', 'console_scripts', 'todo')()
  File "/usr/local/lib/python3.6/site-packages/todo/todo.py", line 156, in main
    result = dispatch(args, daccess)
  File "/usr/local/lib/python3.6/site-packages/todo/todo.py", line 530, in dispatch
    return handler(args, daccess)
  File "/usr/local/lib/python3.6/site-packages/todo/todo.py", line 363, in edit_task
    new_content = utils.input_from_editor(task['title'], EDITOR)
TypeError: 'NoneType' object is not subscriptable

I suggest to check if ID is present and valid :)

Removing todo items or context doesn't reset todo counter

Consider repeatedly running:

todo rmctx pizza_list --force
todo add "Pepperoni" --context pizza_list
todo add "Margarita" --context pizza_list
todo add "Veggie" --context pizza_list
todo add "Supreme"  --context pizza_list
todo pizza_list

The todo item counter keeps incrementing forever.

No way to unmark task as done

Small note from when I tried using this: There doesn't seem to be a way to unmark a task as done.

I did a typo and marked the wrong task as done. Would be nice if todo done toggled the status of the task, or if there was a command such as todo undone

Multiple machines

Does todo work on multiple machines? Can the database be shared in Dropbox?

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.