1. 06 Nov, 2015 1 commit
    • Bram Schoenmakers's avatar
      Add -i flag to ls to select only those todo items with a specific ID · fefb54e3
      Bram Schoenmakers authored
      -i accepts a comma separated list of todo IDs and `ls` will only print
      those IDs that were given.
      
      Use case:
      
      I hide most tags from my list for a clearer overview. In order to see
      the tags corresponding to an item, I have to open the todo.txt file and
      locate the item there.
      
      Together with aliasing and the upcoming feature with formatting, using
      the -i flag allows me to show only those todo items with a specific ID
      with the full content.
      
          [ls]
          hide_tags = bunch,of,tags
      
          [aliases]
          lsdetail = ls -F "%s %K" -i
      
      Then:
      
          topydo> ls
          |  1| Hidden details
      
          topydo> lsdetail 1
          Hidden details bunch:1 of:2 tags:3
      fefb54e3
  2. 05 Nov, 2015 3 commits
  3. 04 Nov, 2015 6 commits
  4. 03 Nov, 2015 5 commits
  5. 02 Nov, 2015 1 commit
  6. 01 Nov, 2015 1 commit
  7. 31 Oct, 2015 1 commit
  8. 30 Oct, 2015 8 commits
  9. 28 Oct, 2015 1 commit
  10. 24 Oct, 2015 3 commits
  11. 23 Oct, 2015 5 commits
  12. 22 Oct, 2015 3 commits
    • Jacek Sowiński's avatar
      Save `edit` result only when tempfile was modified · f1770b95
      Jacek Sowiński authored
      mtimes of tempfile prior to editing and after leaving the editor are now
      compared before changing anything in todolist. If tempfile wasn't
      modified, todolist (and todo file) is left untouched and user gets
      appropriate error message.
      f1770b95
    • Jacek Sowiński's avatar
      Sanitize defaults in topydo.lib.Config._Config · 1ed31367
      Jacek Sowiński authored
      Using defaults as a parameter passed to the constructor of
      configparser.ConfigParser results in a presence of **all** options
      inside every section. It's very convenient in many use-cases, but not
      very much with our configuration model.
      
      After this change only relevant options are present in each section, so:
      
      `topydo.lib.Config.config().has_option('topydo', 'priority_colors')`
      
      will now return `False` as 'priority_colors' resides in 'colorscheme'
      section and not in 'topydo'. Before this change it would return `True`.
      1ed31367
    • Bram Schoenmakers's avatar
  13. 16 Oct, 2015 1 commit
  14. 15 Oct, 2015 1 commit