[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Org Mode TOOD two way sync tool
From: |
Aurélien Aptel |
Subject: |
Re: [O] Org Mode TOOD two way sync tool |
Date: |
Sun, 24 Jun 2012 15:15:19 +0200 |
Hi,
I'm working on a bugtracker sync tool for org-mode [1]. I'm using
org-element to parse org files, it does everything I need.
It turns this
* TODO blah <2012-06-25>
:PROPERTIES:
:foo: bar
:END:
Foo bar
into this:
(org-data nil
(headline
(:raw-value "blah <2012-06-25>" :title
("blah "
(timestamp
(:type active :value "<2012-06-25>")))
:level 1
:todo-keyword "TODO"
:todo-type todo
:timestamp "2012-06-25"
:foo "bar" :category "???")
(section
()
(property-drawer
(:properties (("foo" . "bar"))))
(paragraph
()
"Foo bar"))))
I've removed irrelevant stuff for the example but you can get get the
start/end point of each element from this structure.
Just call org-element-parse-buffer.
1: http://orgmode.org/w/org-sync.git
- [O] Org Mode TOOD two way sync tool, Sriram Karra, 2012/06/22
- Re: [O] Org Mode TOOD two way sync tool, Christopher J. White, 2012/06/22
- Re: [O] Org Mode TOOD two way sync tool, Sriram Karra, 2012/06/22
- Re: [O] Org Mode TOOD two way sync tool, Christopher J. White, 2012/06/22
- Re: [O] Org Mode TOOD two way sync tool,
Aurélien Aptel <=
- Re: [O] Org Mode TOOD two way sync tool, Aurélien Aptel, 2012/06/24
- Re: [O] Org Mode TOOD two way sync tool, Christopher Allan Webber, 2012/06/24
- Re: [O] Org Mode TOOD two way sync tool, Aurélien Aptel, 2012/06/25
- Re: [O] Org Mode TOOD two way sync tool, Sriram Karra, 2012/06/25
- Re: [O] Org Mode TOOD two way sync tool, Christopher Allan Webber, 2012/06/25
- Re: [O] Org Mode TOOD two way sync tool, Christopher Allan Webber, 2012/06/25