Is there a way to categorize data in a note so that I can search that particular data later.
for example. Lets say I use a template for my notes and the template includes a couple of categories for example: “problem”, “solution” and “theory”. Is there a way to do this so that I can later ask obsidian to list everything that is written in these notes which is categorized as “problems” giving me a list of all the problems as described in those notes.
thankful for any help
inline fields with dataview plugin
problem:: "Houston, we have a problem."
Then any dataview query will find it.
Do I understand you correxct that KuiyouRO suggests a solution using both dataview and metadata menu, but egauthier suggests a solution using only dataview. I will try to look into both these plugins, but any thoughts advantages or disadavantages using one or the other solution?
You might find this sample vault useful as a resource.
also do you know what to type to ask dataview to only include notes that has content within one or more of the inline fields? for example, I write the following
but what do I need to add?
I Know I can ask it to only pick from a certain folder. But not all notes in this folder is yet formatted in this way, so I only want dataview to show the notes who has content in one or more of the inline fields.
thanks again for the help
I think this will work, but I haven’t tested it
WHERE problem OR solution OR theory
This should give you a list of all files where at least one of the three fields exists
The simplest way might be tags:
Is there a way to categorize data in a note so that I can search that particular data later? #problem
#problem: Is there a way to categorize data in a note so that I can search that particular data later?
When you want to see the list of problems, you click the tag or search it in the sidebar. If you want you can embed the search in a note.
Perhaps. But I also realized that when I do format the notes to this form I can easily also add a tag and then I can tell dataview to only include notes with that tag.
I think quering the note content is not possible because there are no implicit fields for note content like
file.content. I think Dataview is based on implicit and explicit fields, it doesn’t have other variables that the user could work with. But there is DataviewJS which offers ways to handle file content in various ways together with regular Dataview.