emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Scott Otterson <scotto@u.washington.edu>
Cc: Emacs-orgmode@gnu.org
Subject: Re: group checklist toggle (post-summer-break feature request)
Date: Thu, 29 Jun 2006 12:43:52 +0200	[thread overview]
Message-ID: <062c0196533ed5aed2a5e9e260aa1497@science.uva.nl> (raw)
In-Reply-To: <44A2AE77.1040707@u.washington.edu>


On Jun 28, 2006, at 18:29, Scott Otterson wrote:

> At first, I wasn't sure I'd use the new '[X]' checklists, but now I've 
> got them sprinkled all over my .org files -- they're especially handy 
> for multi-step tasks which are done repeatedly.
> When I repeat a multi-step task I've done before, one of the first 
> things I do is to uncheck all of the [X]'s.   So, I'd like C-c C-c to 
> toggle all of the [X]'s within a selected region, similar to the way 
> you can now indent or unindent selected region headlines.  Toggling 
> all of the checks under a headline might also be useful, but maybe 
> less so.

This was easy, so I did it for 4.41.

You asked for C-c C-c to do this and this is possible, but only
if the cursor is in a line with a checkbox - in other lines,
C-c C-c has other duties.  So in order to do the region toggle
with C-c C-c, you need to select the other way round:  Mark
after the last line to include, point *in* the first line to include.

I am providing an additional key for checkbox toggling: C-c C-x C-b
With this key, you don't need to do the above trick when selecting
the region.  C-c C-x C-b works also in a headline and toggles all
boxes below the headline.  See the rewritten section about checkboxes
in the manual.

I decided to only toggle the first box and pull all the other boxes
to the same state as the first.  If you truly want to toggle the
selected boxes independently, use a prefix argument with the
command (either `C-u C-c C-c'   or   `C-u C-c C-x C-b').

- Carsten

      parent reply	other threads:[~2006-06-29 10:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <44A2AC87.1010208@sharpleaf.org>
2006-06-28 16:29 ` group checklist toggle (post-summer-break feature request) Scott Otterson
2006-06-28 22:33   ` Carsten Dominik
2006-06-29 10:43   ` Carsten Dominik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=062c0196533ed5aed2a5e9e260aa1497@science.uva.nl \
    --to=carsten.dominik@gmail.com \
    --cc=Emacs-orgmode@gnu.org \
    --cc=scotto@u.washington.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).