- 02 Nov, 2015 3 commits
-
-
Bram Schoenmakers authored
This fixes the issue that `ls -F "%p %s"` doesn't work, because the double quotes weren't interpreted properly. Reported by @mruwek.
-
Bram Schoenmakers authored
Suppose format string: ls_format = %s [%T] The result would be: Test todo item [just now The final bracket is missing, because it was matched as part of the placeholder. This change will only match the closing bracket when the opening bracket is also present.
-
Bram Schoenmakers authored
This will make sure that %[T] in the format string gets replaced with the replacing text.
-
- 01 Nov, 2015 1 commit
-
-
Bram Schoenmakers authored
Add %S - truncated version of %s
-
- 31 Oct, 2015 4 commits
-
-
Jacek Sowiński authored
If %S is used in list_format, PrettyPrinterFormatFilter will now check if final result fits on the screen. If not, it will truncate it accordingly and only then return.
© by @MinchinWeb for `topydo.lib.Utils.get_terminal_size` -
Jacek Sowiński authored
-
Jacek Sowiński authored
%h stands for: "due %D, starts in/started %S" %H stands for: "%C, %h" Also reorder %k and %K to maintain consistency in code.
-
Bram Schoenmakers authored
Adjust `PrettyPrinterFormatFilter` to achieve current `topydo ls` output (and more)
-
- 30 Oct, 2015 8 commits
-
-
Jacek Sowiński authored
-
Jacek Sowiński authored
-
Jacek Sowiński authored
-
Jacek Sowiński authored
Also fix Unicode error for %K when tag contains special characters.
-
Jacek Sowiński authored
-
Jacek Sowiński authored
It calculates if actual todo id is shorter than 3 characters and adds additional space or two to maintain fixed length of this parameter. Also set %I as default instead of %i to provide compatibility with tests and.
-
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
-
Jacek Sowiński authored
With interpolation turned on we couldn't properly use '%' in list_format strings.
-
- 27 Oct, 2015 1 commit
-
-
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)
-
- 24 Oct, 2015 3 commits
-
-
Bram Schoenmakers authored
Save `edit` result only when tempfile was modified
-
Bram Schoenmakers authored
-
Jacek Sowiński authored
-
- 23 Oct, 2015 5 commits
-
-
Jacek Sowiński authored
topydo.Command.get_subcommand() is one of the critical parts of topydo so we really have to be sure that it's functioning properly.
-
Jacek Sowiński authored
-
Jacek Sowiński authored
Also move resolving aliases logic to a function.
-
Jacek Sowiński authored
Aliases can now be defined in 'aliases' section of topydo config file. Examples: [aliases] showall = ls -x purge = del -f ical = ls -f ical
-
Bram Schoenmakers authored
Sanitize defaults in topydo.lib.Config._Config This may break the tests in pending PR #52 .
-
- 22 Oct, 2015 3 commits
-
-
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.
-
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`.
-
Bram Schoenmakers authored
-
- 15 Oct, 2015 5 commits
-
-
Bram Schoenmakers authored
Introduce backup feature and `revert` command
-
Jacek Sowiński authored
-
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.
-
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.
-
Jacek Sowiński authored
This will be used to recreate TodoList from a list of Todo objects.
-
- 13 Oct, 2015 2 commits
-
-
Bram Schoenmakers authored
Style Changes
-
Bram Schoenmakers authored
Fix Wheel building
-
- 12 Oct, 2015 1 commit
-
-
MinchinWeb authored
Evaluate conditional requirements at install time rather than compile time.
-
- 09 Oct, 2015 4 commits
-
-
MinchinWeb authored
First line should end with a period
-
MinchinWeb authored
No blank lines allowed after function docstring
-
MinchinWeb authored
1 blank line required after class docstring
-
MinchinWeb authored
-