This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
I created this Dataview script to turn a list of events into a nice visual calendar representation. | |
Alternatively you can provide YAML start-date and end-date field names, and the script will find all | |
matching notes and display those as events. | |
Step 1: | |
Add a list to a note in this format: | |
- 2022-09-05 to 2022-09-16 | Conference in Houston | |
- 2022-10-04 to 2022-10-11 | [[Holiday in Bali]] | (this one is a link to a page) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!input?.query) { | |
dv.paragraph("You must pass a `query` to the view"); | |
return; | |
} | |
const pagesWithLists = await dv.tryQuery(input.query); | |
const HEADER_SIZE = input?.headerSize ?? 2; | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%_* | |
const run_type = 2; | |
/* | |
run_type = 0; // callout 형식만 대화상자에서 고른 다음 바로 노트에서 글 작성 | |
run_type = 1; // 폴딩과 제목, 내용을 따로따로 입력 (키보드만으로 내용을 입력할 수 있음.) | |
run_type = 2; // 폴딩과 제목, 내용을 하나의 대화 상자에서 입력 (callout 모양 그대로 보며 내용을 입력할 수 있음) | |
* 되도록 obsidian 자체의 스타일로 callout을 보여주도록 함. | |
* callout 안의 callout을 사용할 수 있음 (callout 중첩) |