From: Matthew Lundin <mdl@imapmail.org>
To: Martin Stemplinger <mstemplinger@gmx.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: Selective Export of subheadings and plain text
Date: Sun, 05 Apr 2009 11:59:01 -0500 [thread overview]
Message-ID: <m2myav11gq.fsf@fastmail.fm> (raw)
In-Reply-To: <817i1zoyxx.fsf@gmx.de> (Martin Stemplinger's message of "Sun\, 05 Apr 2009 18\:19\:38 +0200")
Martin Stemplinger <mstemplinger@gmx.de> writes:
>> On Apr 3, 2009, at 9:38 PM, Martin Stemplinger wrote:
>>
>>> I use org-mode as a GTD implementation with level-1 headings as area
>>> of focus, level-3 headings for projects and level-5 headings as next
>>> actions. For each project I also note a successful outcome in plain
>>> text.
>>>
>>> So it looks like this
>>>
>>> * Self development :TOPIC:
>>> *** Learn org-mode :PROJECT:
>>> I improve my GTD implementation.
>>> ***** ONLINE post question to org-mode mailing list
>>> *** Learn Esperanto :PROJECT:
>>> I speak Esperanto fluently.
>>>
>>> What I would like to do is to export a project list together with the
>>> successful outcome but without the next actions below it looking like
>>> this
>>>
>>> 1 Self development
>>> ==========
>>>
>>> 1.1 Learn org-mode
>>> ---------------
>>> I improve my GTD implementation.
>>>
>>> 1.2 Learn Esperanto
>>> ---------------
>>> I speak Esperanto fluently.
>>>
If you are consistent about tagging all your projects you could, you
could create a custom agenda command for sparse trees in which
org-use-tag-inheritance is turned off.
--8<---------------cut here---------------start------------->8---
(setq org-agenda-custom-commands
'(("p" "Projects" tags-tree "PROJECT"
((org-show-entry-below t)
(org-use-tag-inheritance nil)))
;; other commands here
))
--8<---------------cut here---------------end--------------->8---
This will create a sparse tree that hides the ONLINE line. E.g., the
following file:
--8<---------------cut here---------------start------------->8---
#+STARTUP: odd
#+OPTIONS: tags:nil
* Self development :TOPIC:
*** Learn org-mode :PROJECT:
I improve my GTD implementation.
***** ONLINE post question to org-mode mailing list
*** Learn Esperanto :PROJECT:
I speak Esperanto fluently.
--8<---------------cut here---------------end--------------->8---
Will be shown as:
--8<---------------cut here---------------start------------->8---
#+STARTUP: odd
#+OPTIONS: tags:nil
* Self development :TOPIC:
*** Learn org-mode :PROJECT:
I improve my GTD implementation.
*** Learn Esperanto :PROJECT:
I speak Esperanto fluently.
--8<---------------cut here---------------end--------------->8---
Then you can export only the visible portions of the org file to ascii
(or any other format):
C-c C-e v a
Here is the resulting ascii export:
,----
| Table of Contents
| =================
| 1 Self development
| 1.1 Learn org-mode
| 1.2 Learn Esperanto
|
|
| 1 Self development
| ~~~~~~~~~~~~~~~~~~
|
| 1.1 Learn org-mode
| ==================
| I improve my GTD implementation.
|
| 1.2 Learn Esperanto
| ===================
| I speak Esperanto fluently.
`----
You could accomplish the same thing with a slightly different custom
agenda command:
--8<---------------cut here---------------start------------->8---
(setq org-agenda-custom-commands
'(("p" "Projects" tags-tree "LEVEL=2"
((org-show-entry-below t)
(org-use-tag-inheritance nil)))
;; other commands here
))
--8<---------------cut here---------------end--------------->8---
Hope this helps,
Matt
prev parent reply other threads:[~2009-04-05 16:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-03 19:38 Selective Export of subheadings and plain text Martin Stemplinger
2009-04-04 3:08 ` Carsten Dominik
2009-04-05 16:19 ` Martin Stemplinger
2009-04-05 16:26 ` Carsten Dominik
2009-04-05 16:59 ` Matthew Lundin [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2myav11gq.fsf@fastmail.fm \
--to=mdl@imapmail.org \
--cc=emacs-orgmode@gnu.org \
--cc=mstemplinger@gmx.de \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.