Skip to content

Search expression to match only "leaf" notes #1059

@bobrippling

Description

@bobrippling
  • I have searched for existing issues that may be the same as or related to mine.

If I have notes such as:

* Shopping :shopping:
** Bread
** Veg
*** Carrots
*** Cabbage

Where I've grouped some items, I'd like to find all "leaf" items, and ignore the groups. In other words, items without children, so in this case, Bread, Carrots and Cabbage.

Would a change to add a leaf search expression be accepted? If so I can create a PR. It would be something like:

t.shopping leaf
or
t.shopping hierarchy.leaf / t.shopping h.leaf if we wanted to avoid the "leaf" bareword being by itself

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions