Skip to content

Commit 348727b

Browse files
authored
Merge pull request #174 from cloud-atlas-ai:correct-dv-instructions
fix dataview example in README
2 parents a0b9310 + d545f54 commit 348727b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This plugin is in the community plugin browser in Obsidian. Search for ICS and y
2323

2424
### Obsidian Plugin Setup
2525
1. Click the "+" button to add a new calendar.
26-
2. Choose a name for the calendar, select "Calendar Type" as "Remote URL", and then paste the Secret Address URL into the box labeled "Calendar URL".
26+
2. Choose a name for the calendar, select "Calendar Type" as "Remote URL", and then paste the Secret Address URL into the box labeled "Calendar URL".
2727
3. Customize your format settings for the specific calendar. These tie to the Output Format for that specific calendar: whether to include a checkbox for each scheduled item, the event end time, the calendar name, event summary, event location, event description
2828
4. Click "Save" at the bottom of the specific Calendar's view.
2929
5. On the main ICS page, select your time [format](https://momentjs.com/docs/#/displaying/) and whether to emit start and end times as Dataview Metadata. See the below screenshot.
@@ -42,7 +42,7 @@ For customizations not available to the formatting, use Dataview or Templater (s
4242
You can also use a [Dataview](https://blacksmithgu.github.io/obsidian-dataview/) to add your events to your journal notes when they get created. For examples, if you use the core Templates plugin you can add the following to add events to your daily note template:
4343

4444
```dataviewjs
45-
var events = await app.plugins.getPlugin('ics').getEvents(dv.current().file.day);
45+
var events = await app.plugins.getPlugin('ics').getEvents(dv.current().file.name);
4646
var mdArray = [];
4747
events.forEach((e) => {
4848
mdArray.push(`${e.time} ${e.summary} ${e.location}: ${e.description}`.trim())

0 commit comments

Comments
 (0)