n4n0GH/task

Reuse old IDs

Opened this issue · 1 comments

Would it be possible to allow reusing the IDs of tasks that have been deleted, to keep ID numbers low?

Hm, current implementation only checks the last ID and increments based on that. So say you have tasks with IDs of 1, 2 and 13, the next added task would have ID 14. If you'd clear task 13 before adding a new task it'd get ID 3.

I guess I could change the checking method to see if there's "open spots" between the first and last task and reuse those IDs as well.

Good idea!