20220202_obsidian

I Love Obsidian

It’s the notetaking system I have been searching for for years. More later, but for now here is my config.

Daily Template:

---
creation-date: "<% tp.file.creation_date() %>"
modification-date: "<% tp.file.last_modified_date("dddd Do MMMM YYYY HH:mm:ss") %>"
the-date: "<% tp.date.now("YYYY-MM-DD", 0, tp.file.title, "YYYY-MM-DD") %>"
the-week: "<% tp.date.now("YYYY", 0, tp.file.title, "YYYY")+"W"+tp.date.now("ww", 0, tp.file.title, "YYYY-MM-DD") %>"
the-month: "<% tp.date.now("YYYY", 0, tp.file.title, "YYYY-MM-DD")+"M"+tp.date.now("MM", 0, tp.file.title, "YYYY-MM-DD") %>"
the-quarter: "<% tp.date.now("YYYY", 1, tp.file.title, "YYYY-MM-DD")+"Q"+tp.date.now("Q", 0, tp.file.title, "YYYY-MM-DD") %>"
tags: ['journal']
---

# <% tp.file.title %>

<< [[<% tp.date.now("YYYY-MM-DD", -1, tp.file.title, "YYYY-MM-DD") %>]] | [[<% tp.date.now("YYYY-MM-DD", 1, tp.file.title, "YYYY-MM-DD") %>]] >>

<% tp.web.daily_quote() %>


## Tasks
- [ ]  <% tp.file.cursor(0) %>

## Events
 * 
### Inspiration
<% tp.web.random_picture("800x400", "landscape,water,nature,mountain") %>

Weekly Template

---
creation date: <% tp.file.creation_date() %>
modification date: <% tp.file.last_modified_date("dddd Do MMMM YYYY HH:mm:ss") %>
---

# <% tp.file.title %>

<< [[<% tp.user.prev_week(tp.file.title) %>]] | [[<% tp.user.next_week(tp.file.title) %>]] >>

<% tp.web.daily_quote() %>


## Quick Assessment

## Highlights

## Hopes

## Entries

```dataview  
    table file.ctime as "Created Time"  
    from "01 Journal/00 Daily"  
    where the-week = "<% tp.file.title %>"
    sort file.name asc  
```

next_week.js

function next_week(dt_str) {
    let year = dt_str.split("W")[0];
    let week = parseInt(dt_str.split("W")[1]);
    if (week == 52) {
        year += 1;
        week = "01";
        return year+"W"+week
    } else {
        week += 1;
        if (week < 10) {
            return year+"W0"+week
        }
        return year+"W"+week
    }
}
module.exports = next_week;

prev_week

function prev_week(dt_str) {
    let year = dt_str.split("W")[0];
    let week = parseInt(dt_str.split("W")[1]);
    if (week == 1) {
        year -= 1;
        week = "52";
        return year+"W"+week
    } else {
        week -= 1;
        if (week < 10) {
            return year+"W0"+week
        }
        return year+"W"+week
    }
}
module.exports = prev_week;

Plugins Plugin Config Templater Config

Highlight Rollup

 - [ ] Wrote [[01 Getting Set Up]]!  [MonthHighlight::]

In template:

task
from "01 Journal/00 Daily"  
where WeekHighlight="" or MonthHighlight=""