xpgo / obsidian-folder-note-plugin

Plugin to add description note to a folder for Obsidian.
385 stars 27 forks source link

Show image in ccard of folder notes #86

Open dragunDaniel opened 9 months ago

dragunDaniel commented 9 months ago

Greetings everyone. Recently, I installed the plug-in and quickly noticed that, unlike the ccards corresponding to notes, the ccards of folders do not show the image that it contains at the beginning. Let’s remember that I can create a note from a folder, a folder note, in which I can place an image at the beginning, just like in a common note.

Imagine that I have a folder 1 that contains a folder 2 and a random note. As we know, this plug-in allows me to create a folder note for folder 1, which would show me the following result:

image

In the previous case, the random note contains an image at the beginning of it, and therefore it is displayed in the ccards display. However, folder 2 also has its own folder note that also contains an image at the beginning of it:

image

And yet, the image is not displayed, as you can see in the first screenshot

Any suggestions on how to implement this solution?

Interesting data:

–> A folder note cannot be opened from a ccard either. However, thanks to this community, there is an “issue” in this repository that provided a solution through a modification of the main.js that has worked for me.

TheDestroyer1 commented 9 months ago

While not the way you maybe want it to behave, a quick fix for the problem for the folder to show it image is to manually set that as the first item, view the ccard-syntax.md file to better figure that out.

dragunDaniel commented 9 months ago

While not the way you maybe want it to behave, a quick fix for the problem for the folder to show it image is to manually set that as the first item, view the ccard-syntax.md file to better figure that out.

I am familiar with that method, however, doing it manually takes too much time when the number of folders is significantly large. Anyway, I appreciate the suggestion 👍