vault backup: 2026-04-16 12:13:50
This commit is contained in:
20
99 Templates/Math Homework Template.md
Normal file
20
99 Templates/Math Homework Template.md
Normal file
@@ -0,0 +1,20 @@
|
||||
<div style="width: 100%; font-size: 10pt; font-family: sans-serif; line-height: 1.4;">
|
||||
<div><% tp.date.now("YYYY-MM-DD") %></div>
|
||||
<div>Jan Meyer</div>
|
||||
<div>664237</div>
|
||||
</div>
|
||||
<%*
|
||||
const folderPath = "11 Homework/Mathe II";
|
||||
|
||||
const folder = app.vault.getAbstractFileByPath(folderPath);
|
||||
let fileCount = 0;
|
||||
|
||||
if (folder && folder.children) {
|
||||
fileCount = folder.children.length;
|
||||
}
|
||||
|
||||
const newFileName = `Homework ${String(fileCount).padStart(2, '0')}`;
|
||||
|
||||
await tp.file.move(`${folderPath}/${newFileName}`);
|
||||
%>
|
||||
|
||||
Reference in New Issue
Block a user