liu-qilong / obsidian-setup

My customized Obsidian Dataview templates, including TagLens, DailyLens, and PaperThread
4 stars 0 forks source link

Week note #2

Open romanskorobagatko opened 3 weeks ago

romanskorobagatko commented 3 weeks ago

Hi, thanks a lot once again for sharing your setup, I really like it. The only issue I have is that "week" note seems not working, I can see all related notes in daily notes and quarter notes but the week one is empty. Any ideas where to look for a solution? (I've set everything up according to the instructions).

Also how do I make TagLens show (sort) notes alphabetically?

liu-qilong commented 1 week ago

Thanks for your feedback! If you follow the Setup from scratch section of README, then this issue is due to my mistake. In the last part, Daily notes and Calendar settings, the folder name template should be revised as templates:

#### Daily notes and Calendar settings

Open `Settings` > `Daily notes`:

Fill `New file location` with `journal/diary`.
- Fill `Template file location` with `obsidian-setup/template/diary page`.
+ Fill `Template file location` with `obsidian-setup/templates/diary page`.

_P.S. If you can't find `Settings` > `Daily notes`, open `Settings` > `Core plugins` and confirm that the `Daily notes` core plugin is enabled._

Open `Settings` > `Calendar`:

Set `Start week on` as `Monday`.
- Fill `Weekly note template` with `obsidian-setup/template/week page.md`.
+ Fill `Weekly note template` with `obsidian-setup/templates/week page.md`.
Fill `Weekly note folder` with `journal/week`.

You can check the markdown source code of your week note. An ordinary one shall look like this:

image

liu-qilong commented 1 week ago

Also how do I make TagLens show (sort) notes alphabetically?

It's now sorted alphabetically. You can do git pull in the obsidian-setup folder to update it or use the v1.1 example vault.

romanskorobagatko commented 1 week ago

Thank you, sorting is working. Unfortunately week note still doesn’t, I made a video: https://www.dropbox.com/scl/fi/pw7eus7zn4vmc9crd7zr3/Screen_Recording_2024_10_13_01_12_20.mp4?rlkey=4sy5dqclh3ee5rf6xf83bvli7&raw=1

liu-qilong commented 1 week ago

Sorry, I can't reproduce this issue. Can you do these tests for me?

```dataviewjs
const {DailyLens} = await cJS()
dv.paragraph(DailyLens.week_dates(2024, 41))


On my side, it shows the dates of week 41 of 2024 correctly:

![image](https://github.com/user-attachments/assets/ce94a176-94b6-4d92-b971-182c67eca752)