From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Lundin Subject: Re: Selective Export of subheadings and plain text Date: Sun, 05 Apr 2009 11:59:01 -0500 Message-ID: References: <81myax34v3.fsf@gmx.de> <44BCB68F-2E8C-48CB-B1A0-4DFB436CD769@gmail.com> <817i1zoyxx.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LqVgd-0004wi-1K for emacs-orgmode@gnu.org; Sun, 05 Apr 2009 12:59:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LqVgY-0004vU-GQ for emacs-orgmode@gnu.org; Sun, 05 Apr 2009 12:59:10 -0400 Received: from [199.232.76.173] (port=53753 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LqVgY-0004vR-E3 for emacs-orgmode@gnu.org; Sun, 05 Apr 2009 12:59:06 -0400 Received: from out2.smtp.messagingengine.com ([66.111.4.26]:35504) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LqVgY-0007ac-2G for emacs-orgmode@gnu.org; Sun, 05 Apr 2009 12:59:06 -0400 In-Reply-To: <817i1zoyxx.fsf@gmx.de> (Martin Stemplinger's message of "Sun\, 05 Apr 2009 18\:19\:38 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Martin Stemplinger Cc: emacs-orgmode@gnu.org Martin Stemplinger 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