emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Archiving drawers?
@ 2012-08-24 12:19 Loris Bennett
  2012-08-24 12:34 ` Bastien
  0 siblings, 1 reply; 6+ messages in thread
From: Loris Bennett @ 2012-08-24 12:19 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

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.

Cheers,

Loris 

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

* Re: Archiving drawers?
  2012-08-24 12:19 Archiving drawers? Loris Bennett
@ 2012-08-24 12:34 ` Bastien
  2012-08-24 12:52   ` Loris Bennett
  2012-08-26 15:20   ` Bernt Hansen
  0 siblings, 2 replies; 6+ messages in thread
From: Bastien @ 2012-08-24 12:34 UTC (permalink / raw)
  To: Loris Bennett; +Cc: emacs-orgmode

Hi Loris,

"Loris Bennett" <loris.bennett@fu-berlin.de> 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 :)

-- 
 Bastien

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

* Re: Archiving drawers?
  2012-08-24 12:34 ` Bastien
@ 2012-08-24 12:52   ` Loris Bennett
  2012-08-24 14:56     ` Bastien
  2012-08-26 15:20   ` Bernt Hansen
  1 sibling, 1 reply; 6+ messages in thread
From: Loris Bennett @ 2012-08-24 12:52 UTC (permalink / raw)
  To: emacs-orgmode

Bastien <bzg@altern.org> writes:

> Hi Loris,
>
> "Loris Bennett" <loris.bennett@fu-berlin.de> 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

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

* Re: Archiving drawers?
  2012-08-24 12:52   ` Loris Bennett
@ 2012-08-24 14:56     ` Bastien
  2012-08-24 19:10       ` Achim Gratz
  0 siblings, 1 reply; 6+ messages in thread
From: Bastien @ 2012-08-24 14:56 UTC (permalink / raw)
  To: Loris Bennett; +Cc: emacs-orgmode

Hi Loris,

"Loris Bennett" <loris.bennett@fu-berlin.de> writes:

> Bastien <bzg@altern.org> writes:
>
>> Hi Loris,
>>
>> "Loris Bennett" <loris.bennett@fu-berlin.de> 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.

But then archiving the "* Make tea" headline would require to merge the
logs of the archived one and those of the alive one.  Quite some work.

-- 
 Bastien

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

* Re: Archiving drawers?
  2012-08-24 14:56     ` Bastien
@ 2012-08-24 19:10       ` Achim Gratz
  0 siblings, 0 replies; 6+ messages in thread
From: Achim Gratz @ 2012-08-24 19:10 UTC (permalink / raw)
  To: emacs-orgmode

Bastien writes:
> But then archiving the "* Make tea" headline would require to merge the
> logs of the archived one and those of the alive one.  Quite some work.

How's the merge driver for Git coming along?  Archiving to Git would be
a really welcome feature, I guess.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Wavetables for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables

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

* Re: Archiving drawers?
  2012-08-24 12:34 ` Bastien
  2012-08-24 12:52   ` Loris Bennett
@ 2012-08-26 15:20   ` Bernt Hansen
  1 sibling, 0 replies; 6+ messages in thread
From: Bernt Hansen @ 2012-08-26 15:20 UTC (permalink / raw)
  To: Bastien; +Cc: Loris Bennett, emacs-orgmode

Bastien <bzg@altern.org> writes:

> Hi Loris,
>
> "Loris Bennett" <loris.bennett@fu-berlin.de> 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 :)

When my LOGBOOK entries get too big I clone the task, remove the
repeater and mark it DONE (so I can archive the old entries and continue
with my current stuff)

For habits I keep some history so the current habit graph is correct
and for non-habits I usually (but not always) archive the clock entries
from beginning of this month and earlier.

My trigger for doing this is when I notice todo state changes take a
noticeable amount of time on the agenda.  I do this infrequently so I
haven't bothered automating it.  I do have to manually delete all of the
duplicated notes in the LOGBOOK drawer for the clone (clock lines are
removed in cloned tasks but the notes are not which feels wrong ... but
it hasn't bothered me enough to try to fix it yet.)

I'm sure there's a better way I haven't discovered yet.

Just my 2 cents.

Regards,
Bernt

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

end of thread, other threads:[~2012-08-26 15:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-24 12:19 Archiving drawers? Loris Bennett
2012-08-24 12:34 ` Bastien
2012-08-24 12:52   ` Loris Bennett
2012-08-24 14:56     ` Bastien
2012-08-24 19:10       ` Achim Gratz
2012-08-26 15:20   ` Bernt Hansen

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).