Create a folder, move file to it and add check list #569
carlosbaraza
started this conversation in
Templates Showcase
Create a folder, move file to it and add check list
#569
Replies
|
I think this can be simplified to: <%*
let dir = "Resources/Travel/" + tp.date.now("YYYY-MM-DD");
await this.app.vault.createFolder(dir);
this.app.vault.createFolder(dir + "/_resources");
tp.file.move(dir + "/Travel Checklist");
%>
- [ ] Keys to come back
- [ ] Check in
- [ ] Sun cream
- [ ] Glasses
Clothes
- [ ] Underwear |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Every time I travel, I complete a checklist, and I like to have a folder to to add all my tickets and other resources, so everything is organised.
The following template does:
Resources/Travel/YYYY-MM-DDandResources/Travel/YYYY-MM-DD/_resourcesfoldersTravel Checklist