* org-get-heading, but without the count/percentage cookies
@ 2018-02-14 11:41 Marcin Borkowski
2018-02-14 13:22 ` Kaushal Modi
2018-02-14 13:36 ` Nicolas Goaziou
0 siblings, 2 replies; 5+ messages in thread
From: Marcin Borkowski @ 2018-02-14 11:41 UTC (permalink / raw)
To: Org-Mode mailing list
Hi list,
Is it possible to get the text of the Org heading, but without the [n/m]
cookie (or its percentage equivalent)? Or should I just massage the
result of org-get-heading myself?
If the latter, isn't it a bug? (I have a use-case where this is
/really/ necessary.)
TIA,
--
Marcin Borkowski
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: org-get-heading, but without the count/percentage cookies
2018-02-14 11:41 org-get-heading, but without the count/percentage cookies Marcin Borkowski
@ 2018-02-14 13:22 ` Kaushal Modi
2018-02-14 19:35 ` Marcin Borkowski
2018-02-14 13:36 ` Nicolas Goaziou
1 sibling, 1 reply; 5+ messages in thread
From: Kaushal Modi @ 2018-02-14 13:22 UTC (permalink / raw)
To: Marcin Borkowski; +Cc: Org-Mode mailing list
[-- Attachment #1: Type: text/plain, Size: 769 bytes --]
On Wed, Feb 14, 2018, 6:42 AM Marcin Borkowski <mbork@mbork.pl> wrote:
> Hi list,
>
> Is it possible to get the text of the Org heading, but without the [n/m]
> cookie (or its percentage equivalent)?
What exporter are you using? I understand that your question/issue isn't
specific to an exporter, but based on the exporter, this task can be very
easy.
Or should I just massage the
result of org-get-heading myself?
>
That seems to be the only way at the moment.
If the latter, isn't it a bug? (I have a use-case where this is
> /really/ necessary.)
>
That seems to be a grey area.. some folks might actually like to retain
that todo meta data.. or could be that that meta data doesn't yet have an
associated org-element (internal parser).
> --
Kaushal Modi
[-- Attachment #2: Type: text/html, Size: 1795 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: org-get-heading, but without the count/percentage cookies
2018-02-14 13:22 ` Kaushal Modi
@ 2018-02-14 19:35 ` Marcin Borkowski
0 siblings, 0 replies; 5+ messages in thread
From: Marcin Borkowski @ 2018-02-14 19:35 UTC (permalink / raw)
To: Kaushal Modi; +Cc: Org-Mode mailing list
On 2018-02-14, at 14:22, Kaushal Modi <kaushal.modi@gmail.com> wrote:
> On Wed, Feb 14, 2018, 6:42 AM Marcin Borkowski <mbork@mbork.pl> wrote:
>
>> Hi list,
>>
>> Is it possible to get the text of the Org heading, but without the [n/m]
>> cookie (or its percentage equivalent)?
>
>
> What exporter are you using? I understand that your question/issue isn't
> specific to an exporter, but based on the exporter, this task can be very
> easy.
It's not connected with exporting. I have a task (=a todo item) with
subtasks (=a plain list with checkboxes). I have also my Org
integration with Toggl (a "cloud"-based time tracking system, used in my
company). Today I noticed that the task descriptions uploaded to Toggl
contain the statistics cookie.
Best,
--
Marcin Borkowski
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: org-get-heading, but without the count/percentage cookies
2018-02-14 11:41 org-get-heading, but without the count/percentage cookies Marcin Borkowski
2018-02-14 13:22 ` Kaushal Modi
@ 2018-02-14 13:36 ` Nicolas Goaziou
2018-02-14 19:37 ` Marcin Borkowski
1 sibling, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2018-02-14 13:36 UTC (permalink / raw)
To: Marcin Borkowski; +Cc: Org-Mode mailing list
Hello,
Marcin Borkowski <mbork@mbork.pl> writes:
> Is it possible to get the text of the Org heading, but without the [n/m]
> cookie (or its percentage equivalent)?
(org-last (org-get-outline-path))
> Or should I just massage the result of org-get-heading myself?
This would be simpler than the solution above.
> If the latter, isn't it a bug?
No it isn't. Statistics cookies are but an object, like, e.g. inline
source code. `org-get-heading' is not supposed to remove any kind of
object from the title.
It would be different if statistics cookies were specific to headlines,
which is not the case actually.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: org-get-heading, but without the count/percentage cookies
2018-02-14 13:36 ` Nicolas Goaziou
@ 2018-02-14 19:37 ` Marcin Borkowski
0 siblings, 0 replies; 5+ messages in thread
From: Marcin Borkowski @ 2018-02-14 19:37 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: Org-Mode mailing list
On 2018-02-14, at 14:36, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
> Hello,
>
> Marcin Borkowski <mbork@mbork.pl> writes:
>
>> Is it possible to get the text of the Org heading, but without the [n/m]
>> cookie (or its percentage equivalent)?
>
> (org-last (org-get-outline-path))
>
>
>> Or should I just massage the result of org-get-heading myself?
>
> This would be simpler than the solution above.
I think I disagree;-).
>> If the latter, isn't it a bug?
>
> No it isn't. Statistics cookies are but an object, like, e.g. inline
> source code. `org-get-heading' is not supposed to remove any kind of
> object from the title.
>
> It would be different if statistics cookies were specific to headlines,
> which is not the case actually.
I see. (I didn't know I can have stat cookies in e.g. plain list
items!)
Thanks,
--
Marcin Borkowski
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-02-14 19:37 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-14 11:41 org-get-heading, but without the count/percentage cookies Marcin Borkowski
2018-02-14 13:22 ` Kaushal Modi
2018-02-14 19:35 ` Marcin Borkowski
2018-02-14 13:36 ` Nicolas Goaziou
2018-02-14 19:37 ` Marcin Borkowski
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.