emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Checkbox difficulties
@ 2011-10-02 19:06 Dave Abrahams
  2011-10-02 19:11 ` John Hendy
  2011-10-02 19:15 ` Nicolas Goaziou
  0 siblings, 2 replies; 12+ messages in thread
From: Dave Abrahams @ 2011-10-02 19:06 UTC (permalink / raw)
  To: emacs-orgmode


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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Checkbox difficulties
  2011-10-02 19:06 Checkbox difficulties Dave Abrahams
@ 2011-10-02 19:11 ` John Hendy
  2011-10-02 19:15 ` Nicolas Goaziou
  1 sibling, 0 replies; 12+ messages in thread
From: John Hendy @ 2011-10-02 19:11 UTC (permalink / raw)
  To: Dave Abrahams; +Cc: emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Checkbox difficulties
  2011-10-02 19:06 Checkbox difficulties Dave Abrahams
  2011-10-02 19:11 ` John Hendy
@ 2011-10-02 19:15 ` Nicolas Goaziou
  2011-10-02 20:57   ` Dave Abrahams
  1 sibling, 1 reply; 12+ messages in thread
From: Nicolas Goaziou @ 2011-10-02 19:15 UTC (permalink / raw)
  To: Dave Abrahams; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Checkbox difficulties
  2011-10-02 19:15 ` Nicolas Goaziou
@ 2011-10-02 20:57   ` Dave Abrahams
  2011-10-02 21:02     ` Dave Abrahams
  2011-10-03  5:50     ` Nick Dokos
  0 siblings, 2 replies; 12+ messages in thread
From: Dave Abrahams @ 2011-10-02 20:57 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode


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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Checkbox difficulties
  2011-10-02 20:57   ` Dave Abrahams
@ 2011-10-02 21:02     ` Dave Abrahams
  2011-10-02 22:04       ` Nicolas Goaziou
  2011-10-03  5:50     ` Nick Dokos
  1 sibling, 1 reply; 12+ messages in thread
From: Dave Abrahams @ 2011-10-02 21:02 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode


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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Checkbox difficulties
  2011-10-02 21:02     ` Dave Abrahams
@ 2011-10-02 22:04       ` Nicolas Goaziou
  0 siblings, 0 replies; 12+ messages in thread
From: Nicolas Goaziou @ 2011-10-02 22:04 UTC (permalink / raw)
  To: Dave Abrahams; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Checkbox difficulties
  2011-10-02 20:57   ` Dave Abrahams
  2011-10-02 21:02     ` Dave Abrahams
@ 2011-10-03  5:50     ` Nick Dokos
  2011-10-03 14:50       ` Dave Abrahams
  2011-10-03 14:55       ` Dave Abrahams
  1 sibling, 2 replies; 12+ messages in thread
From: Nick Dokos @ 2011-10-03  5:50 UTC (permalink / raw)
  To: Dave Abrahams; +Cc: emacs-orgmode, nicholas.dokos, 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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Checkbox difficulties
  2011-10-03  5:50     ` Nick Dokos
@ 2011-10-03 14:50       ` Dave Abrahams
  2011-10-03 14:55       ` Dave Abrahams
  1 sibling, 0 replies; 12+ messages in thread
From: Dave Abrahams @ 2011-10-03 14:50 UTC (permalink / raw)
  To: emacs-orgmode


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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Checkbox difficulties
  2011-10-03  5:50     ` Nick Dokos
  2011-10-03 14:50       ` Dave Abrahams
@ 2011-10-03 14:55       ` Dave Abrahams
  2011-10-03 22:32         ` Nick Dokos
  1 sibling, 1 reply; 12+ messages in thread
From: Dave Abrahams @ 2011-10-03 14:55 UTC (permalink / raw)
  To: emacs-orgmode


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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Checkbox difficulties
  2011-10-03 14:55       ` Dave Abrahams
@ 2011-10-03 22:32         ` Nick Dokos
  2011-10-06 21:25           ` Dave Abrahams
  0 siblings, 1 reply; 12+ messages in thread
From: Nick Dokos @ 2011-10-03 22:32 UTC (permalink / raw)
  To: Dave Abrahams; +Cc: nicholas.dokos, emacs-orgmode

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Checkbox difficulties
  2011-10-03 22:32         ` Nick Dokos
@ 2011-10-06 21:25           ` Dave Abrahams
  2011-10-11 14:08             ` Dave Abrahams
  0 siblings, 1 reply; 12+ messages in thread
From: Dave Abrahams @ 2011-10-06 21:25 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode


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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Checkbox difficulties
  2011-10-06 21:25           ` Dave Abrahams
@ 2011-10-11 14:08             ` Dave Abrahams
  0 siblings, 0 replies; 12+ messages in thread
From: Dave Abrahams @ 2011-10-11 14:08 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode


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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-10-11 14:08 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-02 19:06 Checkbox difficulties Dave Abrahams
2011-10-02 19:11 ` John Hendy
2011-10-02 19:15 ` Nicolas Goaziou
2011-10-02 20:57   ` Dave Abrahams
2011-10-02 21:02     ` Dave Abrahams
2011-10-02 22:04       ` Nicolas Goaziou
2011-10-03  5:50     ` Nick Dokos
2011-10-03 14:50       ` Dave Abrahams
2011-10-03 14:55       ` Dave Abrahams
2011-10-03 22:32         ` Nick Dokos
2011-10-06 21:25           ` Dave Abrahams
2011-10-11 14:08             ` Dave Abrahams

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).