In Dataview for Obsidian, when using inline queries with the keyword this, you’re referring to the current note’s properties. These properties can be derived from the note’s frontmatter, its content, or metadata that Obsidian automatically tracks for each note. Below is a list of commonly used parameters and properties you can access with inline queries using this in a note:
Frontmatter Properties
this.title: The title of the note.this.tags: Tags specified in the note’s frontmatter.this.created: The creation date of the note.this.modified: The last modification date of the note.Custom properties: Any custom property you’ve defined in the frontmatter (e.g.,this.author,this.priority, etc.).
Content and Metadata Properties
this.file.name: The name of the note’s file (typically the title of the note).this.file.path: The path to the note within your Obsidian vault.this.file.size: The size of the note file in bytes.this.file.extension: The file extension (usually.mdfor markdown files).this.file.mtime: The last modified time of the note file.this.file.ctime: The creation time of the note file.
Link and Tag Properties
this.outlinks: A list of notes that the current note links to.this.inlinks: A list of notes that link to the current note.this.etags: Expanded tags, including hierarchical tags.
Example Usage in Inline Queries
You can use these properties in inline queries to dynamically display information about the current note. Here are a few examples:
- To display the current note’s title:
`=this.title` - To display the date when the current note was last modified:
`=this.modified` - To count the number of outlinks in the current note:
`$=this.outlinks.length`
Important Notes
- Ensure you’re viewing your note in preview mode to see the results of inline queries.
- The availability of some properties may depend on your note’s structure and the metadata that Obsidian indexes.
- Custom frontmatter properties can be accessed by replacing
propertyinthis.propertywith the name of your custom property.
This list covers the most commonly used properties for inline this queries within Dataview. Depending on your specific use case, you might explore combining these properties with Dataview’s functions and operators to create more complex queries and analyses within your notes.