task icon indicating copy to clipboard operation
task copied to clipboard

Reuse old IDs

Open crabctrl opened this issue 4 years ago • 1 comments

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

crabctrl avatar Mar 07 '20 00:03 crabctrl

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!

n4n0GH avatar Mar 14 '20 15:03 n4n0GH