From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Converting lists to todo items and back Date: Wed, 21 May 2008 14:03:52 +0200 Message-ID: <8BA7691E-D112-44B1-A6BF-15B3F3811526@uva.nl> References: <87ve187tpg.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 (Apple Message framework v919.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jyn38-0008LS-Uw for emacs-orgmode@gnu.org; Wed, 21 May 2008 08:04:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jyn2z-0008HL-Vy for emacs-orgmode@gnu.org; Wed, 21 May 2008 08:04:01 -0400 Received: from [199.232.76.173] (port=50928 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jyn2x-0008Fz-Cx for emacs-orgmode@gnu.org; Wed, 21 May 2008 08:03:55 -0400 Received: from korteweg.uva.nl ([146.50.98.70]:26603) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jyn2w-0007Gi-Aq for emacs-orgmode@gnu.org; Wed, 21 May 2008 08:03:55 -0400 In-Reply-To: <87ve187tpg.fsf@gollum.intra.norang.ca> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bernt Hansen Cc: emacs-orgmode@gnu.org Hi Bernt, this is a relative specializes application, for example you want the items to be turned into, not just outline headings, but also TODO entries. Org has these: C-c * can turn an item into a headline. However, the heading will always be a subheading of the nearest heading above, so to convert your list, you should start from te end. C-c - can turn an headline into an item `C-c -' will also take an active region and turn each line into an item. My personal solution fo things like this usually is keyboard macro. For example, in this case > > ,----[ from this ] > | * New Task > | - [ ] item 1 > | detail goes here > | - more detail > | - blah > | - [ ] item 2 > | More detail here > | > | end of detail > | - [ ] item 3 > `---- I would position the cursor in "* New Task" line and then type: C-x ( ; start keyboard macro C-s ] RET ; search forward to "]" C-SPACE ; set the mark C-a ; beginning of line C-w ; kill region ** TODO ; Type new headline starter C-x ) ; End kbd macro And then type `C-x e' as often as necessary. You can even do `C-u 200 C-x e' to get 200 repetitions in one go. Once you have a feeling for how to write macros so that they will safely do things, and safely position the cursor in the location where you want it to start the next repetition, this is a really efficient way of doing things. If you keep doing the exact same conversion all the time, yes, write a special command. HTH - Carsten