[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] org.el (org-show-context-detail): add option 'ancestors-with
From: |
Nicolas Goaziou |
Subject: |
Re: [PATCH] org.el (org-show-context-detail): add option 'ancestors-with-entry |
Date: |
Mon, 19 Apr 2021 10:21:16 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Hello,
Cheong Yiu Fung <mail@yiufung.net> writes:
> Hi, I'm proposing a new option in `org-show-context-detail', which shows
> current headline, its ancestors, *and the entry itself*. This is useful
> when export matched subtrees and their contents quickly with least
> manual intervention.
>
> Consider when working on different aspects of a project and taking notes
> as we go:
>
> * Project
> A project tree
> ** Task1
> ** Task2
> *** ASK Something to align
> Something for discussion
> ** Task3
> ** Task4
> *** ASK Something else to align
> Something else.
>
> At some point, we may wish to export only certain contents. For example,
> to export headings with TODO keyword of "ASK", along with the task
> context (ancestors TASK<N> heading name), and their own content for
> discussion with colleagues. Ideally, this can be done by
> org-sparse-tree, followed by org-export with visible-only + subtree-only
> option.
>
> Expected output:
> * Project
> ** Task2
> *** ASK Something to align
> Something for discussion
> ** Task4
> *** ASK Something else to align
> Something else.
>
> Current options, though, either require manual expansion to show both
> ancestors AND entry, which becomes tedious soon;
>
> * Project
> ** Task2
> *** ASK Something to align
> ** Task4
> *** ASK Something else to align
>
> or it shows extra contents (`local' will include the *next* heading, in
> this example, the non-related Task3)
>
> * Project
> *** ASK Something to align
> Something for discussion
> ** Task3
> *** ASK Something else to align
> Something else.
>
> `ancestor-with-entries' is a long name that pose some difficulties to
> updating documentations, so I wish to have some feedbacks before moving
> on. Is there better way to achieve this effect? Am I overlooking
> something?
Don't you need to simply move point within the entry and use `ancestors'
view?
Regards,
--
Nicolas Goaziou
- [PATCH] org.el (org-show-context-detail): add option 'ancestors-with-entry, Cheong Yiu Fung, 2021/04/16
- Re: [PATCH] org.el (org-show-context-detail): add option 'ancestors-with-entry,
Nicolas Goaziou <=
- Re: [PATCH] org.el (org-show-context-detail): add option 'ancestors-with-entry, Cheong Yiu Fung, 2021/04/19
- Re: [PATCH] org.el (org-show-context-detail): add option 'ancestors-with-entry, Nicolas Goaziou, 2021/04/20
- Re: [PATCH] org.el (org-show-context-detail): add option 'ancestors-with-entry, Cheong Yiu Fung, 2021/04/20
- Re: [PATCH] org.el (org-show-context-detail): add option 'ancestors-with-entry, Cheong Yiu Fung, 2021/04/21
- Re: [PATCH] org.el (org-show-context-detail): add option 'ancestors-with-entry, Cheong Yiu Fung, 2021/04/21
- Re: [PATCH] org.el (org-show-context-detail): add option 'ancestors-with-entry, Nicolas Goaziou, 2021/04/22
- Re: [PATCH] org.el (org-show-context-detail): add option 'ancestors-with-entry, Cheong Yiu Fung, 2021/04/22
- Re: [PATCH] org.el (org-show-context-detail): add option 'ancestors-with-entry, Nicolas Goaziou, 2021/04/27