minad / org-modern

:unicorn: Modern Org Style
GNU General Public License v3.0
1.55k stars 48 forks source link

checkboxes only work for 1st level headings #181

Closed shroomist closed 7 months ago

shroomist commented 7 months ago

I'm using checkbox strings [ ] as my todo keywords. org-modern-checkbox seems to also catch those in headings but only for the first level headings. would have been cool to have it being supported on all heading levels.

Screenshot 2024-03-16 at 22 18 03
minad commented 7 months ago

This is actually a bug in Org. Check box strings are not supported as todo keywords. org-list-full-item-re incorrectly recognizes check boxes for first level headings, since * [ ] item is valid list syntax. Note the space before the star, which is needed to make this a valid list item!