Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search expression to match only "leaf" notes #1059

Open
1 task done
bobrippling opened this issue Sep 22, 2024 · 0 comments
Open
1 task done

Search expression to match only "leaf" notes #1059

bobrippling opened this issue Sep 22, 2024 · 0 comments

Comments

@bobrippling
Copy link

  • 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant