3 ms·
Are “checkboxes” like [ ] and [x] understood by the real org mode or would I need to define say [_] and [x] as TODO keywords if I wanted highlighting of that so
by yodon 9y ago
Are “checkboxes” like [ ] and [x] understood by the real org mode or would I need to define say [_] and [x] as TODO keywords if I wanted highlighting of that sort of syntax? (It’s been ~20 years since I was a heavy emacs user, looking forward to finally getting to play with Org Mode or at least an alpha of it)
- walkingolof 9y ago"Every item in a plain list can be made into a checkbox by starting it with the string ‘[ ]’. " https://orgmode.org/manual/Checkboxes.html https://orgmode.org/manual/Checkboxes.html
- TeMPOraL 9y agoYes, they're understood, but in the different way. Org mode opted to treat headlines as TODO items (this choice is important for the purpose of e.g. generating agendas), whereas checkboxes apply to list items. As for the checkboxes, org mode understands [ ] and [X], and can process them relative to checkboxes in a sublist. For instance, if you write something like this: - [/] Foo - [X] Bar - [ ] Baz - [%] Foo - [X] Bar - [ ] Baz and then make org-mode reevaluate the list (by e.g. using a shortcut that toggles a checkbox state), it will automagically turn into: - [1/2] Foo - [X] Bar - [ ] Baz - [50%] Foo - [X] Bar - [ ] Baz (similar / and % feature is available for TODOs in headlines too). Org mode maintains such associations itself, recomputing them as you change state using org-mode commands, and it can also be configured to enforce additional structural constraints - e.g. preventing you from turning a TODO to DONE, if its subtasks are not all in DONE state.