frustak / koal

Manage your time & energy.
https://koal.fly.dev
2 stars 0 forks source link

Move todo items up and down #54

Closed frustak closed 1 year ago

frustak commented 1 year ago

This can help to order and prioritize them. Possible implementations:

frustak commented 1 year ago

Implementation

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.

frustak commented 1 year ago

A possible improvement would be to add hotkeys for changing weights. Pressing up would increase the weight, and pressing the bottom would decrease it.

frustak commented 1 year ago

I've tried it and it's a really bad idea :P. I'll find another approach.