Skip to content
Discussion options

You must be logged in to vote

This is now possible with a custom grouping instruction, using an undocumented change included in Tasks 7.7.0.

group by function \
    const allHeadings = task.file.cachedMetadata?.headings; \
    if (!allHeadings) return ''; \
    const headingInfo = allHeadings.find((h) => h.heading === task.heading); \
    return `%%${headingInfo.position.start.line}%% ${task.heading}`;

It's undocumented because I'm not yet happy with usability - but there are no plans to change it...

So, if you use this and it stops working in future, leave a message here and I'll provide an updated version.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@benjaminwelch
Comment options

@einbequemesbrot
Comment options

@benjaminwelch
Comment options

@einbequemesbrot
Comment options

@claremacrae
Comment options

Comment options

You must be logged in to vote
1 reply
@claremacrae
Comment options

Answer selected by claremacrae
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
scope: grouping Changes to the grouping capabilities
3 participants