1. 30 Oct, 2015 2 commits
    • Jacek Sowiński's avatar
      Use "conditional characters" in list_format · eaf382a0
      Jacek Sowiński authored
      These conditional characters should be specified **inside** curly braces
      ({}) and **after** percent sign (%). They can appear in two groups:
      before and after particular placeholder.
      
      Example:
      "list_format = %{(}p{)}"
      
      If priority of given todo is C, "list_format" set above will now resolve
      to (C), but also won't display empty parentheses if there is no priority
      set.
      
      Fixes issue mentioned in 8650033b
      eaf382a0
    • Jacek Sowiński's avatar
      Don't use interpolation when parsing configuration · a5fc3af3
      Jacek Sowiński authored
      With interpolation turned on we couldn't properly use '%' in list_format
      strings.
      a5fc3af3
  2. 27 Oct, 2015 1 commit
    • Bram Schoenmakers's avatar
      Introduce list format option. · 8650033b
      Bram Schoenmakers authored
      The `ls` output can be customized with the list_format option in the
      configuration, or the `-F` flag for `ls`.
      
      Open issues:
      
      * Relative dates to be implemented (see PR #52)
      * Using (%p) without todo items without priority results in ()
      * Ability to print todo on a single line (see PR #52)
      8650033b
  3. 24 Oct, 2015 3 commits
  4. 23 Oct, 2015 5 commits
  5. 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
  6. 15 Oct, 2015 5 commits
    • Bram Schoenmakers's avatar
      Merge pull request #47 from mruwek/undo · 6838c011
      Bram Schoenmakers authored
      Introduce backup feature and `revert` command
      6838c011
    • Jacek Sowiński's avatar
      7bf730a9
    • Jacek Sowiński's avatar
      Add "revert" command · 565d0203
      Jacek Sowiński authored
      `topydo revert` will search for backup corresponding with current state
      of todo file, and use it to recover previous state. Output will show to
      user results of which command had been reverted. If no suitable backup
      is found (for example if user edited todo file recently with other
      application), no action is taken and user is notified on the output
      about lack of corresponding backup in backup file.
      565d0203
    • Jacek Sowiński's avatar
      Add possibility for creating backups of todolist · b8f99e6e
      Jacek Sowiński authored
      Backups containing whole todolist and archive can be now saved after
      execution of each "read-write" command. Furthermore this change creates
      base for eventual "revert" command.
      
      Backups are safely stored and indexed in our own JSON-based format which
      is compatible with python2.x and python3.x. We also use zlib compression
      to minimize size of backup file. Path of the backup file is always
      relative to the todo file, so backups from different todo files won't
      mix up.
      
      User can configure number of stored backups with new config option -
      "backup_count". Any positive number will tell topydo to store that very
      number of backups. Setting "backup_count" to 0 will completely turn off
      backup functionality.
      b8f99e6e
    • Jacek Sowiński's avatar
      Add "replace" method for TodoList objects · 4936565d
      Jacek Sowiński authored
      This will be used to recreate TodoList from a list of Todo objects.
      4936565d
  7. 13 Oct, 2015 2 commits
  8. 12 Oct, 2015 1 commit
    • MinchinWeb's avatar
      Fix Wheel building · 40c6de43
      MinchinWeb authored
      Evaluate conditional requirements at install time rather than compile time.
      40c6de43
  9. 09 Oct, 2015 18 commits