Closed frustak closed 1 year ago
I suggest adding a weight
property to todos.
All todo
will have a default weight of 0.
Two buttons will be added to todo items, one for increasing weight and one for decreasing.
We sort todos by their weight. For example, an item with a weight of -1 will come sooner than an item with a weight of 0 and a weight of +1.
Removing a todo and adding one will not affect other todos. They are sorted by weights and not order indexing which may cause inconsistent indexing (like 0, 1, 3, 4) and needs updating all todos with every change.
A possible improvement would be to add hotkeys for changing weights. Pressing up would increase the weight, and pressing the bottom would decrease it.
I've tried it and it's a really bad idea :P. I'll find another approach.
This can help to order and prioritize them. Possible implementations: