Zren / plasma-applet-todolist

https://store.kde.org/p/1152230/
58 stars 23 forks source link

Support Filtering Completed Items #62

Open Zren opened 3 years ago

Zren commented 3 years ago

IIRC, I removed the filtering when adding the drag and drop code as moving an item caused it to create a new item rather than swapping the indexes of the existing Items.

IIRC, I need to support the move animation in plasma-framwork's SortFilterModel.

I remember Ubuntu having a good example, but I don't think this is the correct class.

I could workaround this by moving the completed items to another completed.txt note like Todo.txt does.

hiddenman commented 3 years ago

I could workaround this by moving the completed items to another completed.txt note like Todo.txt does. Hi.

That makes sense, i suppose. Because right now my todo list has hundreds of items and most of them completed. Moving them will help a bit :)

However, i still do not understand the root cause of the problem. What's the difference between moving the completed items to the separate file and hide them and just hide them without moving?

Looks like i have to read and understand how KDE plasma/applets work.

Thank you.

Zren commented 3 years ago

I'll try testing a filter model later.