1
0
Fork 0
mirror of https://github.com/topydo/topydo.git synced 2024-05-20 13:58:33 +00:00
Commit graph

1439 commits

Author SHA1 Message Date
Bram Schoenmakers b3d43d19a2 Add tests for 'dep dot' 2016-11-24 13:28:53 +01:00
Bram Schoenmakers f423ed4e55 Handle items that should appear in more than one group
For example, when grouping by project, a todo item in two groups will be
added to each applicable project.
2016-11-24 12:31:41 +01:00
Bram Schoenmakers 185e08a680 Slightly improve formatting 2016-11-24 12:30:06 +01:00
Bram Schoenmakers d57d63e1bf Merge branch 'bgcolors' 2016-11-24 08:37:28 +01:00
Bram Schoenmakers 1684f33bb6 Add tests for focus and marked background colors 2016-11-24 08:34:09 +01:00
Colin Sullivan 162cc77695 focus and mark colors can now be specified in config 2016-11-24 08:34:08 +01:00
Bram Schoenmakers afcf61cb8a Add preliminary support to grouping to the pretty printer 2016-11-21 16:22:58 +01:00
Bram Schoenmakers a6e3dc95ba Add grouping support to the Sorter 2016-11-21 12:55:52 +01:00
Bram Schoenmakers 4908b64d3c Split watchdog functionality to TodoFileWatched class
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.
2016-11-21 11:27:26 +01:00
Bram Schoenmakers c13af1fc93 Change error message to something more descriptive
The error message does assume you have installed topydo through pip,
which I expect to be usually the case.

Fixes issue #150
2016-11-18 22:15:46 +01:00
Bram Schoenmakers ac982b13fb Merge branch 'watchdog' 2016-11-18 07:22:42 +01:00
Bram Schoenmakers b4f281a6ed Redraw screen when todo.txt is modified externally 2016-11-18 07:16:27 +01:00
Bram Schoenmakers a217dab937 Pass the outer file class to the inner event class 2016-11-18 07:06:02 +01:00
Bram Schoenmakers 3ba348346c Only emit a file update event when todo.txt was changed externally 2016-11-17 22:41:56 +01:00
Bram Schoenmakers 7cdcce987d Merge branch 'dot' 2016-11-17 22:06:08 +01:00
Bram Schoenmakers bc08f745cb Add tests for the dot output 2016-11-17 22:01:05 +01:00
Bram Schoenmakers 985f9b6d22 Enforce Unix line endings in test data 2016-11-17 21:31:30 +01:00
Bram Schoenmakers e0a5412267 Add watchdog dependency 2016-11-17 14:44:37 +01:00
Bram Schoenmakers 4d31c149e5 Trigger updates when the todo.txt file changes
This is applicable for prompt mode and column mode. Changes are
immediately read whenever todo.txt is changed.

Current issues:

* Writes caused by the current topydo instance also trigger the file
  update: needless overhead.
* Column mode: items are not immediately redrawn on update

This mostly addresses issue #142.
2016-11-17 14:40:48 +01:00
Bram Schoenmakers 0c87872f3c Merge branch 'master' of https://github.com/bram85/topydo 2016-11-16 15:02:13 +01:00
Bram Schoenmakers c269edb4c1 Run green with a single process under pypy3
On Travis CI, the pypy3 tests may fail due to concurrency issues,
probably because of the usage of (shared) temporary files.

So, limit the number of processes used by green to 1 when pypy3 is used.

This implies that failures for pypy3 are no longer allowed.
2016-11-16 14:55:31 +01:00
Bram Schoenmakers 4843cee78c Make test deterministic on test infrastructure 2016-11-16 14:53:25 +01:00
Bram Schoenmakers aefec5bb35 Allow failures for pypy3 in Travis CI
Too many (random) failures.
2016-11-09 12:34:53 +01:00
Bram Schoenmakers 2bc3959f57 Merge pull request #148 from mruwek/alt-column-layout
Support user-specified column-layout file
2016-11-08 12:58:30 +01:00
Jacek Sowiński 01753741f6 Support user-specified column-layout file
User can now use '-l' option with an argument *after* 'columns' command
and topydo will try to load column layout from that location. If it
won't find specified file it will use standard column-layout file
locations as a fallback.

Example of use:
Will work: `topydo columns -l ~/fooBar_columns`
Won't work: `topydo -l ~/fooBar_columns columns`

Implements #147
2016-11-08 11:58:54 +01:00
Bram Schoenmakers 5f5476fc29 End temporary file names with .todo.txt
That way the filetype detection of the todo.txt vim plugin is triggered and shows the appropriate syntax highlighting.

https://github.com/freitass/todo.txt-vim
2016-10-25 17:28:39 +02:00
Bram Schoenmakers 0817bb6875 Merge pull request #144 from aetherknight/fix_weekend_importance
Fix importance being wrong when due date is a distant monday.
2016-10-24 09:23:31 +02:00
William (B.J.) Snow Orvis 93c956f307 Fix importance being wrong when due date is a distant monday. 2016-10-22 17:05:14 -07:00
Bram Schoenmakers 515cfe23d3 Merge pull request #143 from mruwek/properly-close-and-save-tempfile
Close temporary file after saving to it
2016-10-10 13:47:37 +02:00
Jacek Sowiński fc26500466 Close temporary file after saving to it
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
2016-10-07 20:08:39 +02:00
Bram Schoenmakers a7c495bf7d Merge pull request #131 from MinchinWeb/hidden-tag
Add HiddenTagFilter
2016-08-30 10:15:31 +02:00
MinchinWeb 6408ee56a3 Remove unused variable from HiddenTagFilter 2016-08-29 14:34:49 -06:00
Bram Schoenmakers 6cecc61637 Merge pull request #138 from mruwek/properly-unmark
Properly unmark items when resetting state
2016-08-22 12:59:30 +02:00
Jacek Sowiński d8fa2d8396 Properly unmark items when resetting state
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.
2016-08-20 15:08:51 +02:00
Bram Schoenmakers 0774ad55e7 Wipe the widget cache at midnight
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)
2016-08-01 14:36:31 +02:00
Bram Schoenmakers 87bfda02f9 Fix crash when a widget is cached with an old Todo object
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.
2016-07-27 15:05:46 +02:00
Bram Schoenmakers 87f54b4095 Merge branch 'master' of https://github.com/bram85/topydo 2016-07-27 12:38:18 +02:00
Bram Schoenmakers 772372e973 Cache TodoWidgets to improve performance
Having hundreds of todo items slows down the column UI quite a lot when doing
an update. An update basically throws away all widgets and creates them from
scratch. That is quite a waste when only one item has changed.

Instead, keep all widgets in a cache, retrievable by the todo's raw text. When
the raw text changes, a new widget is constructed.
2016-07-27 12:17:12 +02:00
Bram Schoenmakers 12d7edf09e Always show completed items as green 2016-07-26 22:05:36 +02:00
Bram Schoenmakers 2f2f357317 Mark completed items with a 'x' in the column UI 2016-07-26 22:01:20 +02:00
Bram Schoenmakers 9b9ea051fe Version bump. 2016-07-26 21:26:34 +02:00
MinchinWeb c8c1804b4a Improve HiddenTagFilter documentation 2016-07-25 15:36:13 -06:00
MinchinWeb 7c0b829eb1 Add HiddenTagFilter
Use the `h:1` tag to hide items from being listed
2016-07-25 15:36:13 -06:00
Bram Schoenmakers 86eb39da25 Show items without priority in console
When topydo is run with colors, items without priority get an invalid
markup added. Only add markup when an item has actually a priority.

Bug found and fixed by @mruwek
2016-07-23 11:04:09 +02:00
Bram Schoenmakers 13d2a633ed Merge branch 'master' of github.com:bram85/topydo 2016-07-22 21:53:49 +02:00
Bram Schoenmakers 013fe7000e Bump version 2016-07-22 21:49:38 +02:00
Bram Schoenmakers 45bcd4a92a Merge pull request #133 from mruwek/fix-132
Fix saving backups when archiving is turned off
2016-07-22 21:14:55 +02:00
Bram Schoenmakers 969260a943 Ignore vim undo files and coverage annotation files 2016-07-22 17:27:02 +02:00
Bram Schoenmakers 3715527aa7 In case a todo has parents, use the max progress of all its parents
The parent color is only used when the todo item has not enough information to
determine its own progress.
2016-07-22 17:26:12 +02:00
Jacek Sowiński 56b427c4a7 Fix saving backups when archiving is turned off
Use empty list if user left `archive_file` option empty.

This fixes #132
2016-07-22 10:10:48 +02:00