andrewbrereton / obsidian-to-ical-plugin

This is a plugin for Obsidian that searches your vault for tasks that contain dates, and generates a calendar in iCal format that can be imported into your preferred calendar application.
MIT License
61 stars 13 forks source link

Problems with not seeing wikilink text #23

Closed pppaapp closed 10 months ago

pppaapp commented 10 months ago

hello

'[[wikilink|custom display text]]' is visible

but '[[wikilink]]' is not visible

Is this an intended feature?

CleanShot 2023-12-01 at 20 50 29@2x

CleanShot 2023-12-01 at 20 51 46@2x

andrewbrereton commented 10 months ago

Hi @pppaapp,

image

In the plugin settings you can choose whether to keep the whole link in the event summary, just the title, or remove them entirely.

From your screenshot, it looks like you have selected Keep the title.

Obsidian support two types of internal link: wikilinks and markdown.

In your example, you're using wikilinks. So in this case, only the title is kept in the event summary.

Scenario 1: Wikilinks internal link with a custom title

- [ ] Test [[*internal link*|*My Custom Title*]] 📅 2023-12-01

The internal link will be removed so the event summary will be:

Test My Custom Title

Scenario 2: Wikilinks internal link without a custom title

- [ ] [[TEST]] 5 📅 2023-12-01

The internal link will be removed, and there is no custom title, so the event summary will be:

5

I hope the above is clear. Let me know if your expectations are different. I think what you may be eluding to is a fourth option such as "Show the title, unless the title does not exist, then show the link".

pppaapp commented 10 months ago

Oh, I like the fourth option.

- [ ] [[AAA]]BBB[[CCC|DDD]]

⬇️

🔲 AAABBBDDD

andrewbrereton commented 10 months ago

Fixed in 1.10.0