Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save loeffelandi/d44543237fcecc75875c65918cd3aa1d to your computer and use it in GitHub Desktop.

Select an option

Save loeffelandi/d44543237fcecc75875c65918cd3aa1d to your computer and use it in GitHub Desktop.
Dann Berg's Daily Note Template for Obsidian. Uses Dataview & Templater plugins. Should be saved as a Markdown file in Obsidian. Read the full tour: https://dannb.org/blog/2022/obsidian-daily-note-template/
---
Datum: <% moment(tp.file.title, 'YYYY-MM-DD').format("YYYY-MM-DD") %>
---
tags: [[+Daily Notes]]
<%*
const d = moment(tp.file.title, 'YYYY-MM-DD');
const prev = d.clone().subtract(1, 'days');
const next = d.clone().add(1, 'days');
tR += `# ${d.format("dddd, MMMM DD, YYYY")}
<< [[Timestamps/${prev.format("YYYY")}/${prev.format("MM-MMMM")}/${prev.format("YYYY-MM-DD-dddd")}|Vorheriger Tag]] | [[Timestamps/${next.format("YYYY")}/${next.format("MM-MMMM")}/${next.format("YYYY-MM-DD-dddd")}|Nächster Tag]] >>`;
-%>
---
### 📅 Täglicher Rückblick & Fokus
##### 🚀 Was ich heute erreichen möchte...
- [ ]
##### ⚠️ Was im Weg steht
-
---
# 📝 Notizen
- <% tp.file.cursor() %>
`BUTTON[1, 2, 3]`
---
### Heute erstellte Notizen
```dataview
List FROM "" WHERE file.cday = date("<%* tR += moment(tp.file.title, 'YYYY-MM-DD').format("YYYY-MM-DD") %>") SORT file.ctime asc
```
### Heute bearbeitete Notizen
```dataview
List FROM "" WHERE file.mday = date("<%* tR += moment(tp.file.title, 'YYYY-MM-DD').format("YYYY-MM-DD") %>") SORT file.mtime asc
```
```meta-bind-button
label: neue private Notiz
icon: user
style: default
class: ""
cssStyle: ""
backgroundImage: ""
tooltip: ""
id: "1"
hidden: true
actions:
- type: templaterCreateNote
templateFile: 99_Vorlagen/Atomic Notes PVT.md
folderPath: "04_Notizen"
fileName: "neue private Notiz"
openNote: true
openIfAlreadyExists: true
```
```meta-bind-button
label: neue Studiums Notiz
icon: graduation-cap
style: default
class: ""
cssStyle: ""
backgroundImage: ""
tooltip: ""
id: "2"
hidden: true
actions:
- type: templaterCreateNote
templateFile: 99_Vorlagen/Atomic Notes STUDY.md
folderPath: 04_Notizen
fileName: neue Studiums Notiz
openNote: true
openIfAlreadyExists: true
```
```meta-bind-button
label: neue Showslot Notiz
icon: briefcase
style: default
class: ""
cssStyle: ""
backgroundImage: ""
tooltip: ""
id: "3"
hidden: true
actions:
- type: templaterCreateNote
templateFile: 99_Vorlagen/Atomic Notes SSL.md
folderPath: 04_Notizen
fileName: neue Showslot Notiz
openNote: true
openIfAlreadyExists: true
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment