You can use this function to make the current line (s) checkbox (s):
upd: works with regions too
(defun org-set-line-checkbox (arg) (interactive "P") (let ((n (or arg 1))) (when (region-active-p) (setq n (count-lines (region-beginning) (region-end))) (goto-char (region-beginning))) (dotimes (in) (beginning-of-line) (insert "- [ ] ") (forward-line)) (beginning-of-line)))
So now, starting with:
Line 1 Line 2 Line 3
With C-3 Cc c you get:
- [ ] Line 1 - [ ] Line 2 - [ ] Line 3
Now with Cc C- * you can get:
* TODO Line 1 * TODO Line 2 * TODO Line 3
upd: built-in way
Beginning with
Line 1 Line 2 Line 3
With Cx h Cu Cc - you will receive:
- Line 1 - Line 2 - Line 3
After Cx h Cu Cc Cx Cb you will receive:
- [ ] Line 1 - [ ] Line 2 - [ ] Line 3
But this is rather cumbersome, org-set-line-checkbox on top should be faster.
abo-abo
source share