Hi! I'm having two problems with checkboxes: 1. They're hard to navigate to. I have a task with 4 checkboxed sub-items, and it's very fiddly getting my cursor in position to check them off. Is there a trick for this? 2. When I have a repeating TODO item with checkbox dependencies, the boxes remain checked even when the TODO->DONE auto-rescheduling event happens. Is there a way to get tehm unchecked? Many thanks in advance, -- Dave Abrahams BoostPro Computing http://www.boostpro.com
[-- Attachment #1: Type: text/plain, Size: 971 bytes --] On Sun, Oct 2, 2011 at 2:06 PM, Dave Abrahams <dave@boostpro.com> wrote: > > Hi! > > I'm having two problems with checkboxes: > > 1. They're hard to navigate to. I have a task with 4 checkboxed > sub-items, and it's very fiddly getting my cursor in position to > check them off. Is there a trick for this? > > From anywhere on the line/item containing the checkbox, C-c C-c toggles the checkbox. > 2. When I have a repeating TODO item with checkbox dependencies, the > boxes remain checked even when the TODO->DONE auto-rescheduling event > happens. Is there a way to get tehm unchecked? > > Highlight the whole region (from first one, C-space, then navigate to last one) and do C-c C-x C-b to toggle them all (assuming that the first one is done and you want them all reset to undone). --- http://orgmode.org/manual/Checkboxes.html Do these help? John Many thanks in advance, > > -- > Dave Abrahams > BoostPro Computing > http://www.boostpro.com > > > [-- Attachment #2: Type: text/html, Size: 1812 bytes --]
Hello, Dave Abrahams <dave@boostpro.com> writes: > I'm having two problems with checkboxes: > > 1. They're hard to navigate to. I have a task with 4 checkboxed > sub-items, and it's very fiddly getting my cursor in position to > check them off. Is there a trick for this? No. I use C-s to navigate to the check-boxes, like any other text. Also, you can use S-up and S-down once you have reached an item. I don't use these, though. > 2. When I have a repeating TODO item with checkbox dependencies, the > boxes remain checked even when the TODO->DONE auto-rescheduling event > happens. Is there a way to get tehm unchecked? You may have a look to org-checklist.el in contrib directory. It exactly does that. Regards, -- Nicolas Goaziou
on Sun Oct 02 2011, Nicolas Goaziou <n.goaziou-AT-gmail.com> wrote: > Hello, > > Dave Abrahams <dave@boostpro.com> writes: > >> I'm having two problems with checkboxes: >> >> 1. They're hard to navigate to. I have a task with 4 checkboxed >> sub-items, and it's very fiddly getting my cursor in position to >> check them off. Is there a trick for this? > > No. I use C-s to navigate to the check-boxes, like any other text. > Also, you can use S-up and S-down once you have reached an item. I don't > use these, though. Thanks. Since I realized it will work anywhere in the list item (and not just in between the `[ ]'s, I don't have too much to complain about. >> 2. When I have a repeating TODO item with checkbox dependencies, the >> boxes remain checked even when the TODO->DONE auto-rescheduling event >> happens. Is there a way to get tehm unchecked? > > You may have a look to org-checklist.el in contrib directory. It > exactly does that. Wow, that's awesome... we're *so* close... but how do I get it to automatically mark the item DONE when the last box is checked? -- Dave Abrahams BoostPro Computing http://www.boostpro.com
on Sun Oct 02 2011, Dave Abrahams <dave-AT-boostpro.com> wrote: > on Sun Oct 02 2011, Nicolas Goaziou <n.goaziou-AT-gmail.com> wrote: > >> Hello, >> >> Dave Abrahams <dave@boostpro.com> writes: >> >>> I'm having two problems with checkboxes: >>> >>> 1. They're hard to navigate to. I have a task with 4 checkboxed >>> sub-items, and it's very fiddly getting my cursor in position to >>> check them off. Is there a trick for this? >> >> No. I use C-s to navigate to the check-boxes, like any other text. >> Also, you can use S-up and S-down once you have reached an item. I don't >> use these, though. > > Thanks. Since I realized it will work anywhere in the list item (and > not just in between the `[ ]'s, I don't have too much to complain > about. Actually I just realized `C-M-n' and `C-M-p' effectively do just what I want, jumping quickly among checkboxes. >> You may have a look to org-checklist.el in contrib directory. It >> exactly does that. > > Wow, that's awesome... we're *so* close... but how do I get it to > automatically mark the item DONE when the last box is checked? ^^^^^^^^^^ Still want that one. Cheers, -- Dave Abrahams BoostPro Computing http://www.boostpro.com
Dave Abrahams <dave@boostpro.com> writes:
>>> You may have a look to org-checklist.el in contrib directory. It
>>> exactly does that.
>>
>> Wow, that's awesome... we're *so* close... but how do I get it to
>> automatically mark the item DONE when the last box is checked?
> ^^^^^^^^^^
> Still want that one.
You might want to experiment with `org-checkbox-statistics-hook'. It
should be run any time you modify a check-box.
Regards,
--
Nicolas Goaziou
Dave Abrahams <dave@boostpro.com> wrote: > Wow, that's awesome... we're *so* close... but how do I get it to > automatically mark the item DONE when the last box is checked? > Take a look at http://thread.gmane.org/gmane.emacs.orgmode/42715/focus=42721 Nick
on Mon Oct 03 2011, Nick Dokos <nicholas.dokos-AT-hp.com> wrote: > Dave Abrahams <dave@boostpro.com> wrote: > >> Wow, that's awesome... we're *so* close... but how do I get it to >> automatically mark the item DONE when the last box is checked? >> > > Take a look at > > http://thread.gmane.org/gmane.emacs.orgmode/42715/focus=42721 Thanks! Trying it now... -- Dave Abrahams BoostPro Computing http://www.boostpro.com
on Mon Oct 03 2011, Nick Dokos <nicholas.dokos-AT-hp.com> wrote: > Dave Abrahams <dave@boostpro.com> wrote: > >> Wow, that's awesome... we're *so* close... but how do I get it to >> automatically mark the item DONE when the last box is checked? >> > > Take a look at > > http://thread.gmane.org/gmane.emacs.orgmode/42715/focus=42721 Works! Oh-so-awesome! Shouldn't these capabilities be built-in and shipped as first class Org features? -- Dave Abrahams BoostPro Computing http://www.boostpro.com
Dave Abrahams <dave@boostpro.com> wrote: > > on Mon Oct 03 2011, Nick Dokos <nicholas.dokos-AT-hp.com> wrote: > > > Dave Abrahams <dave@boostpro.com> wrote: > > > >> Wow, that's awesome... we're *so* close... but how do I get it to > >> automatically mark the item DONE when the last box is checked? > >> > > > > Take a look at > > > > http://thread.gmane.org/gmane.emacs.orgmode/42715/focus=42721 > > Works! Oh-so-awesome! Shouldn't these capabilities be built-in and > shipped as first class Org features? > Well, if the function can be made to work completely generally, maybe: as it stands, it is more a proof-of-concept than a complete solution. I added an entry in the FAQ on Worg about this - I figured this is the second time the question has been asked on the list: ergo it's a FAQ ;-) http://orgmode.org/worg/org-faq.html#sec-9-7 You might want to read the entry: it includes a slightly revised function but it also includes a couple of caveats that explain why I think it's not a complete solution: Nick
on Mon Oct 03 2011, Nick Dokos <nicholas.dokos-AT-hp.com> wrote: > Dave Abrahams <dave@boostpro.com> wrote: > >> >> on Mon Oct 03 2011, Nick Dokos <nicholas.dokos-AT-hp.com> wrote: >> >> > Dave Abrahams <dave@boostpro.com> wrote: >> > >> >> Wow, that's awesome... we're *so* close... but how do I get it to >> >> automatically mark the item DONE when the last box is checked? >> >> >> > >> > Take a look at >> > >> > http://thread.gmane.org/gmane.emacs.orgmode/42715/focus=42721 >> >> Works! Oh-so-awesome! Shouldn't these capabilities be built-in and >> shipped as first class Org features? >> > > Well, if the function can be made to work completely generally, maybe: > as it stands, it is more a proof-of-concept than a complete solution. > > I added an entry in the FAQ on Worg about this - I figured this is the > second time the question has been asked on the list: ergo it's a FAQ ;-) > > http://orgmode.org/worg/org-faq.html#sec-9-7 > > You might want to read the entry: it includes a slightly revised function > but it also includes a couple of caveats that explain why I think it's > not a complete solution: Thanks! Here's a version that deals with at least one of your caveats: (defun ndk/checkbox-list-complete () (save-excursion (org-back-to-heading t) (when looking-at (concat "^\\*+[ \t]+" org-todo-regexp ;; first match group here "[ \t].*\\[" "\\(100%\\)\\|[0-9]+%" "\\|" "\\([0-9]+\\)" "/" "\\([0-9]+\\)" "\\]") (if (or (match-string 2) (and (match-string 3) (equal (match-string 3) (match-string 4)))) (org-todo 'done) (org-todo 'todo))))) -- Dave Abrahams BoostPro Computing http://www.boostpro.com
on Thu Oct 06 2011, Dave Abrahams <dave-AT-boostpro.com> wrote: > Here's a version that deals with at least one of your caveats: > > (defun ndk/checkbox-list-complete () > (save-excursion > (org-back-to-heading t) > (when looking-at (concat > "^\\*+[ \t]+" > org-todo-regexp ;; first match group here > "[ \t].*\\[" "\\(100%\\)\\|[0-9]+%" > "\\|" "\\([0-9]+\\)" "/" "\\([0-9]+\\)" "\\]") > (if (or (match-string 2) > (and (match-string 3) > (equal (match-string 3) (match-string 4)))) > (org-todo 'done) > (org-todo 'todo))))) Whoops! Looks like I made some edits to that after my last test. Please try this one instead: --8<---------------cut here---------------start------------->8--- (defun dwa/checkbox-list-complete () (save-excursion (org-back-to-heading t) (when (looking-at (concat "^\\*+[ \t]+" org-todo-regexp ;; first match group here "[ \t].*\\[" "\\(?:" "\\(?2:100%\\)\\|[0-9]+%" "\\|" "\\(?3:[0-9]+\\)" "/" "\\(?4:[0-9]+\\)" "\\)" "\\]")) (if (or (match-string 2) (and (match-string 3) (equal (match-string 3) (match-string 4)))) (org-todo 'done) (org-todo 'todo))))) --8<---------------cut here---------------end--------------->8--- -- Dave Abrahams BoostPro Computing http://www.boostpro.com