emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Advice on writing a refile to heading function?


From: John Hendy
Subject: Re: [O] Advice on writing a refile to heading function?
Date: Fri, 29 Mar 2013 09:45:10 -0500

On Fri, Mar 29, 2013 at 7:51 AM, Martin Owen <address@hidden> wrote:
Hi,

I am writing a Pomodoro minor mode on top of org-mode. I'm planning to maintain
an Activity Inventory with estimates against each item and move items into a
Todo Today heading each day as I progress through them. The approach is based on
the Pomodoro approach suggested in this book:

My problem is, as I plan to do a lot of refiling, I wanted to write a function
that will take a heading regular _expression_ and refile the subtree at point underneath
it. I am finding this to be difficult, and am wondering if anybody can offer me
any advice? Is it even possible to refile a subtree to a point using Emacs Lisp?


Based on your example file, you're trying to refile "Todo Today" items into a date tree of sorts below for progress tracking? Is that the gist? Just want to make sure I (and the list) understand what you're trying to move and to where (i.e. elaborate on "point underneath it").


Thanks!
John
 
I've posted my code here: https://gist.github.com/mowen/5225169 My approach uses the org-cut-subtree and org-paste-subtree functions, but it doesn't work in all situations. You can see this from the org-pomodoro-refile-up test which is currently failing.

Thanks in advance,

Martin 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]