I’m trying to create a note that represents a Chinese character - the specific character will probably be in the YAML header since I usually name the note with the character + Englsh translation.
Within the note, I’d like to have a list of all the places this character appears within files within a specific folder. Once set up, I’d like to add this to a Chinese character template where it will automatically pull the character and create the search in the note.
Things I have tried
I searched help.obsidian.md and saw how to run search queries within notes. But I didn’t see a way to limit this to a specific folder.
I’m fairly new to Dataview and wasn’t sure how to return a list of locations where the character appears (based on my limited experience, it seemed that it would show me a list files).
With that being said, you might get far using inline queries:
your search text
Using the example above you can insert this into any note, and do just the same as you can do in the vault search within Obsidian. This should be possible to customise into searching for any given chinese character and list the surrounding text of that character. Just as in a normal search.
When you switch to reading view, or leave the block (and you’re in live preview), it’ll do the search, and display the search result.