mjdescy / TodoTxtMac

TodoTxtMac is a minimalist, keyboard-driven to-do manager for Mac OS X (10.8 Mountain Lion and higher) that conforms to the todo.txt format spec.
Other
240 stars 40 forks source link

Task selections are lost when file is reloaded #44

Closed mjdescy closed 9 years ago

mjdescy commented 9 years ago

When the user reloads a file, selections in the task list are lost. This was expected behavior as of version 1.0.0, but is sub-optimal. There are several underlying causes for this behavior, and, to my knowledge, there is no built-in way to retain selection once the task list has been thrown out and reloaded from disk.

mjdescy commented 9 years ago

I coded a work-around that is similar to what I coded for Todotxt.net. It makes a best effort to select the same tasks as were selected prior to the reload. Tasks that change (i.e., are completed or otherwise modified) or removed from the list will not be selected after reload. For duplicate tasks (those with identical raw text), the first of the duplicate tasks will be selected.

I will upload the code to the develop branch when the other enhancements I am working on are complete.