I am starting to use org-mode
, to organise... well everything.
I am following the manual.
Is there a binding in org-mode to insert items and checkboxes ? Ie. something like this :
* TODO Organize party [2/4]
- [-] call people [1/3]
- [ ] Peter
- [X] Sarah
- [ ] Sam
- [X] order food
- [ ] think about what music to play
- [X] talk to the neighbors [CURSOR HERE]
And now if I do M-x insert-checkbox-item
(or similar, I haven't found the command) :
* TODO Organize party [2/4]
- [-] call people [1/3]
- [ ] Peter
- [X] Sarah
- [ ] Sam
- [X] order food
- [ ] think about what music to play
- [X] talk to the neighbors
- [ ] [CURSOR HERE]
If possible, it would respect the indentation too. This would mean keeping the new item at the level of indentation of the item where the cursor was when invoking the command. Which means that it may have to skip a few lines of lower-level items.
Assuming point is already in a list like in your example, use org-insert-todo-heading
, bound to M-S-return
in Org by default. When point is in a checklist item C-c C-c
will toggle its state.
This same binding will do other things depending on where point is, e.g. if you are at the end of a heading it will add another heading at the same level with a TODO
keyword.