Checklist are not working correctly #1880
Labels
No Label
dependencies
duplicate
help wanted
invalid
kind/bug
kind/feature
needs reproduction
question
security
wontfix
No Milestone
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/vikunja#1880
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
On try:
@dpschen Another editor bug to add to the list...
Fixed in
bba9a8e008
- please check if it fixes your error with a new unstable build or on try once the CI released it, in ~30 min.@konrad Unsure:
Shouldn't it be
sort((a, b) => b - a)
so that the result can also be0
=> same list position (might also bea - b
, I always have to test those two :D )Even after that: I think the problem will still exist for list entries with identical names. The reason: the original order is destroyed when we extract them in two arrays (checked and unchecked) and it is impossible to regain the original order by sorting them again. But maybe I have some wrong understanding of what is actually happening.
@dpschen actually, the case you're describing can never happen. That's because the function returns the character index in the text that has a checkbox. Two checkboxes can never be on the same index in the text. That's why sorting them from the lowest to the highest index is the way to fix this issue because then recording "click on the 2nd checkbox" only requires one array lookup to get the position of that checkbox in the text. But the array has to be sorted correctly for that.
I mean, it should work, feel free to check it if you have an idea how to break it 🙂
Ehm this might be obvious but how do I add a checklist to a task? Or what do you mean here about checklist? Thanks!
@vitobotta:
the task description supports markdown. So you can create a checklist by adding e.g. to the description:
That's awesome, thanks a lot!