1. 02 Dec, 2016 1 commit
  2. 30 Nov, 2016 1 commit
    • Bram Schoenmakers's avatar
      Second attempt to make humanize_date() more deterministic · d9ba2172
      Bram Schoenmakers authored
      This reverts the first attempt (commit
      8310b029), because relative dates in terms of
      hours were printed.
      
      This attempt passes the now object that we just created to humanize(), so that
      will be used as a offset. If we don't supply that object, arrow will create a
      different datetime object representing 'now', which might be slightly off
      w.r.t. the now object we created.  Therefore the floating point arithmetic done
      within the arrow library might not produce the desired results (delta / 86400).
      
      By passing the offset ourselves I was able to produce reliable
      results.
      d9ba2172
  3. 29 Nov, 2016 1 commit
  4. 24 Nov, 2016 8 commits
  5. 21 Nov, 2016 1 commit
    • Bram Schoenmakers's avatar
      Split watchdog functionality to TodoFileWatched class · 4908b64d
      Bram Schoenmakers authored
      Also improve the logic to prevent updates for changes caused by the
      current topydo instance. This was done to ignore the first file update
      event after writing out the file, and trigger updates for all other
      file updates that have to be external.
      4908b64d
  6. 18 Nov, 2016 4 commits
  7. 17 Nov, 2016 6 commits
  8. 16 Nov, 2016 3 commits
  9. 09 Nov, 2016 1 commit
  10. 08 Nov, 2016 2 commits
  11. 25 Oct, 2016 1 commit
  12. 24 Oct, 2016 1 commit
  13. 23 Oct, 2016 1 commit
  14. 10 Oct, 2016 1 commit
  15. 07 Oct, 2016 1 commit
    • Jacek Sowiński's avatar
      Close temporary file after saving to it · fc265004
      Jacek Sowiński authored
      This can solve the problems with file handle being occupied by python
      while editor is trying to save user changes from `topydo edit` on some
      operating systems.
      
      Potential fix for #141
      fc265004
  16. 30 Aug, 2016 1 commit
  17. 29 Aug, 2016 1 commit
  18. 22 Aug, 2016 1 commit
  19. 20 Aug, 2016 1 commit
    • Jacek Sowiński's avatar
      Properly unmark items when resetting state · d8fa2d83
      Jacek Sowiński authored
      After introducing cache for TodoWidget objects, widgets highlighted with
      'mark' action were not unmarked after 'reset' action and they reappeared
      highlighted ("marked") after reverting `do` or `delete` commands.
      d8fa2d83
  20. 01 Aug, 2016 1 commit
    • Bram Schoenmakers's avatar
      Wipe the widget cache at midnight · 0774ad55
      Bram Schoenmakers authored
      This serves two purposes:
      
      * Relative dates and progress colors are shown correctly on the next day
      * Stale cached items get wiped at least once a day (for those who continiously
        run this mode)
      0774ad55
  21. 27 Jul, 2016 2 commits
    • Bram Schoenmakers's avatar
      Fix crash when a widget is cached with an old Todo object · 87bfda02
      Bram Schoenmakers authored
      When editing one or more todo items, some items may not have changed, therefore
      having the exact same source text. The EditCommand still deletes the Todo
      instance and creates a new one and puts it in the todo list. But the widget
      cache only looked at the source text, found a widget from before the edit and
      will use it. But the widget still has a reference to the old Todo instance.
      When executing an action on it (e.g. mark it as complete), the TodoList doesn't
      remember that todo item, which results in a crash.
      
      Fixed by updating the reference to the latest Todo instance when the sources
      are equal but the instances are not.
      87bfda02
    • Bram Schoenmakers's avatar