> [!column|flex no-title] >> [!menu-dark-red|ttl-c] [[Obsidian TTRPG Tutorials]] / [[Plugin Tutorials]] / [[Dataview]] / [[Dataview - List Recently Modified Notes]] > [!column|4 no-title] >> [!menu-green-1|ttl-c] [[Getting Started]] > >> [!menu-green-2|ttl-c] [[Plugin Tutorials]] > >> [!menu-green-3|ttl-c] [[Community Supported Games]] > >> [!menu-green-4|ttl-c] [[Obsidian TTRPG Tutorials/Templates/Templates\|Templates]] > [!column|3 no-title] >> [!patreon|ttl-c] [Patreon](https://www.patreon.com/JPlunkett) ([Starter Vault](https://www.patreon.com/posts/obsidian-patreon-96801399)) > >> [!discord|ttl-c] [Obsidian TTRPG Community Discord](https://discord.gg/CdM9UCJdwU) > >> [!discord|ttl-c] [Obsidian Official Discord](https://discord.gg/8AF29UBUCa) ## List the Session Journals This example can be placed in a note and will automatically generate a list of recently modified notes. ![[Pasted image 20230708153731.png]] This example looks at notes in your vault and lists the most recently modified notes based on the rules you have set. > [!note]+ Example Dataview Code > \`\`\`dataview > TABLE WITHOUT ID > link(file.path, file.folder + " / " + file.name) AS "Note", > file.mtime AS "Last modified" > FROM "/" > WHERE file.mtime >= date(today) - dur(30 days) > AND file.name != this.file.name > AND !contains(file.path, "z_Assets") > AND !contains(file.path, "Inline Scripts") > AND !contains(file.path, "z_Templates") > AND !contains(file.path, "daily notes") > AND !contains(file.path, "BRAT") > SORT file.mtime DESC > LIMIT 10 > \`\`\` You can modify this to meet your own personal requirements. Here are the bits that matter. - **dur(30 days)** - Change the `30 days` to meet your personal needs. - **AND !contains(file.path, "z_Assets")** - These lines are here to remove folders from the query. For example, I don't need to see the images I have added to my vault returned in this table so I have added the `z_Assets` folder into the query. Basically the query is saying return all of the notes in my vault that have been modified in the last 30 days EXCEPT where the notes or files are in a folder that contains `z_Assets` in the name. - **LIMIT 10** - This sets how many notes your query will return. It currently returns the last 10 notes that were recently modified.