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

{{heading}} placeholder not finding any headings #95

Open
benjaminwelch opened this issue May 25, 2024 · 2 comments
Open

{{heading}} placeholder not finding any headings #95

benjaminwelch opened this issue May 25, 2024 · 2 comments

Comments

@benjaminwelch
Copy link

Hi @ivan-lednev,

This is going to be a game changer. I just need to figure out this last part. My plan is to use the placeholders so I can archive tasks under lists that have the same text as the heading they're under.

## admin
- [x] cleaning task
## study
- [x] reading task

The above task would end up like this:

## admin

## archive
- admin
	- [x] awesome task
- study
	- [x] reading task 

However, when I try to use {{heading}} it misses admin as the heading and just uses the file name. I tried this in a test vault with no other 3rd party plugins as well. Here is what I'm seeing:
Screenshot 2024-05-25 at 17 04 41
Screenshot 2024-05-25 at 17 04 54

I looked through the issues but didn't find it. I hope I can get this working. Let me know if I can help with anything else on my side!

Cheers,
Ben

@crizzy9
Copy link

crizzy9 commented Nov 12, 2024

Having the same problem. is there a fix yet?

@mmmilo
Copy link

mmmilo commented Nov 27, 2024

{{heading}} only seems to work for H1 headings, ie.

{{headingChain}} might work, but only applies for H1 headings, ie.

# This will work
## This won't

It'd be great if we could distinguish between the two and/or have {{heading}} respect the smaller headers.

Thanks!

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

No branches or pull requests

3 participants