[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Archiving drawers?
From: |
Loris Bennett |
Subject: |
Re: [O] Archiving drawers? |
Date: |
Fri, 24 Aug 2012 14:52:28 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Bastien <address@hidden> writes:
> Hi Loris,
>
> "Loris Bennett" <address@hidden> writes:
>
>> I have a small number of tasks that I clock into daily. I have already
>> manually split off the older log entries into a separate draw called
>> OLDLOGS. However, I was wondering whether there is a way of archiving
>> these log entries while preserving the heading itself in the original
>> org file.
>
> The question is: _where_ to archive those log entries?
>
> The best idea I can think of is another drawer, like you did.
> As for automating this a bit, a nice Elisp exercise :)
I was thinking more along the lines of the way archiving works already,
but instead of moving the whole heading, a copy of the heading plus the
old logs would be made in the archive file, and the old logs would be
deleted from the original file, i.e.
gtd.org:
,-----------------------------------------------------------------
| * Make tea
| :LOGBOOK:
| CLOCK: [2012-08-24 Fri 13:05]--[2012-08-24 Fri 13:40] => 0:35
| :END:
| :OLDLOGS:
| CLOCK: [2011-12-23 Fri 12:45]--[2011-12-23 Fri 13:16] => 0:31
| :END:
`-----------------------------------------------------------------
would become
gtd.org:
,-----------------------------------------------------------------
| * Make tea
| :LOGBOOK:
| CLOCK: [2012-08-24 Fri 13:05]--[2012-08-24 Fri 13:40] => 0:35
| :END:
`-----------------------------------------------------------------
gtd.org_archive:
,-----------------------------------------------------------------
| * Make tea
| :OLDLOGS:
| CLOCK: [2011-12-23 Fri 12:45]--[2011-12-23 Fri 13:16] => 0:31
| :END:
`-----------------------------------------------------------------
Loris