Can I find titles containing a specific string?

hello

I’ve searched for hours, but I couldn’t find the method I wanted, so I’m asking a question in the end.

I’m writing a template right now
What I want to do is create a template that automatically links files.

For example:
Folder : Root/Files
File : Root/Files/A.md, B.md, C.md…
Index File : Root/Index.md

Here, when A, B, C files are created as templates
I want to automatically link Index.md one level up.

Even if you use templater’s tp.file, include syntax, etc.
I can’t find a specific string of title

I would be grateful if you could let me know if there is a better way

I’m not fully understanding your request here. Do you want to create one file at a time, and make it link to an index file in the parent folder? Or do you want to create all the files in the sub folder, in one go?

How do you foresee locating which file in the parent folder is to be used as the index file? Will it always by named Index.md?

Another question which could affect the outcome is where will you be when wanting to create this/these file(s)? Will you be in the index file, or somewhere else?

In most cases, you might need to extend from pure template functions, and either use the obsidian API, javascript API or dataview API to achieve all of your goals. And based on my limited knowledge of your use case, it seems like there needs to be at least a little javascript involved to achieved your goals.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.