-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support alternative checkboxes #76
Conversation
Thank you for your contribution @tobiasvl, looks like a neat feature which we should add. I just merged a bigger change into the codebase, which changes the way we extract ToDos from the documents and added some test. Can I ask you to check out the newest version, add your changes and extend the test cases that cover the expected behaviour? |
@lumoe Okay, I think this should do it. I added a couple of tests I thought made sense (and fixed an unrelated typo in a separate commit). Let me know if you need anything else. (I haven't run the tests locally, and you need to approve running the CI, so we'll see if it works!) |
@lumoe Let me know if you need anything else from me! |
I think this is hard to standardize. Shouldn't we add more characters to the regex if we are referring to the minimal-theme? Does it make sense for a very wide audience to refer to minimal-theme? Which other themes exist that enlarge the todo-items-functionality? |
Those are part of the Markdown standard, so yes, I would hope so!
Which other ones do you see that could be referred to as "terminal"? I feel like I admit that this pull request adds semantic interpretation to syntax that doesn't have any inherent semantics, so people might use these checkboxes differently. I'm open to either adding more (risking that we roll over some checkboxes that people might not want to roll over) or removing Either of those solutions (or my original one) is IMO better than the current situation, where no alternative checkboxes are rolled over. After all it's safer to roll over too eagerly than the opposite, because that could cause people to "lose" and forget checkboxes without intending to. That was the motivation behind the change.
I could find some more examples of themes that support alternative checkboxes, if it's useful. Minimal isn't the only one. |
Do you mean the GitHub-flavor?
At least
That's a great suggestion. This way we can make sure that the plugin offers the right behavior for more users. |
Yes, that's what I mean, sorry. It's not part of the official Markdown spec, I forgot since there are so many different ones. But, of course, it's also part of the Markdown supported by vanilla Obsidian (ie. with the standard theme). By the way, GitLab's Markdown flavor supports an "inapplicable" checbox (
I can see that. I interpreted it as "forwarded to next sprint/day/whatever". I guess I fell victim to the same semantic interpretation problem! |
Of course - you're right. My first comment was pointless 🙈 |
fixes #87 |
Hello, Thank you for the plugin and for the cr. As shown in this comment, I adapted the regex to match my needs, Some people may like to only roll-over [ ] items. I think this is up to every one understanding/use of the different themes, semantic and markdown flavor. Therefore, why not exposing a input box allowing people to enter a list of chars they would like to "roll-over" ? This would make the implementation very flexible and future proof. |
Is there any update on this PR, I'd love to for this functionality to be added to Rollover Daily ToDos. |
hello. Are there any updates? Any reasons not to merge this MR? |
New plugin version with updated checkbox logic is live. Update available in Obsidian. |
How does this work? Is the user able to define which task states rollover and which don't? |
Many Obsidian themes support "alternative" checkboxes (Minimal, for example), where different characters inside the checkbox brackets give additional meaning to the checkbox.
Currently, this plugin will consider such alternative checkboxes (including the common
- [/]
checkbox, which means "incomplete") as finished, and not roll them over.This PR changes this, so only
- [x]
/- [X]
("done") and- [-]
("canceled") are considered "finished" checkboxes. All other checkboxes are considered "unfinished" and will be rolled over.