emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Mitchell Roe" <mitchell.roe@member.fsf.org>
To: emacs-orgmode@gnu.org
Subject: Inverting the chronology of LOGBOOK entries
Date: Thu, 05 Apr 2018 15:17:03 -0400	[thread overview]
Message-ID: <wh1uh3woxlpiog.fsf@KL130OUWBSM16.i-did-not-set--mail-host-address--so-tickle-me> (raw)

Hello,

I have a few different things going into my LOGBOOKs (i.e. TODO state
changes, notes from ~org-add-note~, and =CLOCK= entries from
~org-clock-in~ and ~org-clock-out~).

These entries are /prepended/ to the LOGBOOK, which results in a
/descending/ chronological order.  I would like to know if it is
possible to configure org to /append/ them to the LOGBOOK instead, which
would result in an /ascending/ chronological order.

Here is an example of the current behavior:

#+BEGIN_SRC org
  ,* DONE A very important task
    :LOGBOOK:
    - State "DONE"       from "TODO"       [2018-04-05 Thu 14:20]
    - Note taken on [2018-04-05 Thu 14:10] \\
      Still working away at this task.
    - Note taken on [2018-04-05 Thu 14:00] \\
      Working away at this task.
    CLOCK: [2018-04-05 Thu 13:50]--[2018-04-05 Thu 14:20] =>  0:30
    - State "TODO"       from              [2018-04-05 Thu 13:50]
    :END:
#+END_SRC

And here is that same example, but with the LOGBOOK entries in ascending
chronological order (i.e. the behavior I'm after):

#+BEGIN_SRC org
  ,* DONE A very important task
    :LOGBOOK:
    - State "TODO"       from              [2018-04-05 Thu 13:50]
    CLOCK: [2018-04-05 Thu 13:50]--[2018-04-05 Thu 14:20] =>  0:30
    - Note taken on [2018-04-05 Thu 14:00] \\
      This is a note.
    - Note taken on [2018-04-05 Thu 14:10] \\
      This is another note, recorded later.
    - State "DONE"       from "TODO"       [2018-04-05 Thu 14:20]
    :END:
#+END_SRC

I have looked for such a setting in org.el and on the interwebs, but
have yet to find one.  Thanks for any help you can provide.

             reply	other threads:[~2018-04-05 19:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-05 19:17 Mitchell Roe [this message]
2018-04-06  0:02 ` Inverting the chronology of LOGBOOK entries Eric Abrahamsen
2018-04-06  9:54   ` Mitchell Roe

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=wh1uh3woxlpiog.fsf@KL130OUWBSM16.i-did-not-set--mail-host-address--so-tickle-me \
    --to=mitchell.roe@member.fsf.org \
    --cc=emacs-orgmode@gnu.org \
    /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).