opentasks
opentasks copied to clipboard
Sorting of checklist after done and not done
It would be nice to sort the checklist of a task with one click. My idea would be to put done buckets to the end of the list to have the to be done buckets at the top of the list. A matching use case would be someone shopping groceries using this app. After checking like 25/50 buckets unordered, one would possibly like to reorder his list not to forget something.
I am 100% with you I mainly use the app for my grocery list so such sort would be very nice to have.
I had a look to the source code but I am not an Android developer neither Java developer so I am not confident modifying it.
From what I have found, CheckListFieldView
seems to be the class to modify but it appears that it respects the order of the data in a List<CheckListItem>
. So maybe a better solution would be to change the order in that list directly. But I am not sure if we can freely change the order in that list (like Google Keep seems to do) or keep the original order and keep another list with the order of which the elements show be shown.
Also, I don't know if we should re-order by default (with a setting to enable this) or only on a button press.
@romainreignier please note that the branch 875-render-markdown-checkboxes contains a couple of changes in how the check list is handled. In particular it now allows text blocks and checked items to be mixed It's not final yet, though.
I'd like to see two options:
- move completed items to the bottom
- persist check list with completed items on the bottom
This can be implemented in two separate steps of course.
Ok, thank you for the details. I will not be able to work on it these days by as soon as I find some time, I will look at it again.
yep, we are interessted in this feature, too!!
btw duplicate of #680 ...?!