-
Notifications
You must be signed in to change notification settings - Fork 237
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
Syntax for checkboxes in frontmatter? #291
Comments
Yes the new checkbox format works in the latest version (it was fixed a few versions back). It should count the "checked" (true) values for you (it works in my personal vault). Can you double check your front matter by switching to source view and verifying it is using |
I just looked it up. We added support in version 1.11.0 |
Hmm, also can you try with "month:" format instead of "summary:"? I just tried in my vault with summary and it has an issue. So might be something related to that |
Never mind. Summary works (I use "Reading" and you use "read". Not only did I have the wrong word, but the search is also case-sensitive) |
so this should work?
|
Yes, as long as you actually named the field "read" in your frontmatter and not "Read" |
This doesn't seem to be working for me. It seems to be adding any instance of the checkbox property to the streak regardless of whether it's true or false and I can't figure out why. |
The problem seems to be in expr.ts: To increment the streak counter in summary view, it only checks that the value of each object is not null. Since unchecked boxes are "false", which is distinct from null, the tracker considers it part of the streak. I may pull request a change (but I do not know typescript so sorry if I can't do it). |
Yeah, no worries there. Since you did the effort of find the spot in the code with the issue I can take a look and try to fix it |
1.13.2 has been released and this should now be fixed |
Apologies if this has been posted but I looked around and didn't see it. I'm using version 1.13.1.
I see that checkboxes in frontmatter is supported now but how do you use it?
Trying to track a frontmatter check box called read. This code doesn't work. It does add up all the days I've had the item in my frontmatter but doesn't consider if the value is true or false.
I have seen people suggest the following and I guess it works but I wasn't sure that was the official way
The text was updated successfully, but these errors were encountered: