import vault

This commit is contained in:
Marcel Arndt
2026-07-16 14:04:45 +02:00
commit a2ad5f5c6d
90 changed files with 31429 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
module.exports = function(prop_name) {
let max = -1;
for (const f of app.vault.getMarkdownFiles()) {
const fm = app.metadataCache.getFileCache(f)?.frontmatter;
if(typeof fm?.[prop_name] === "number") {
max = Math.max(max, fm[prop_name])
}
}
return max + 1
}