husjon / obsidian-file-cleaner-redux

A plugin for Obsidian to help clean up files in your vault
MIT License
25 stars 2 forks source link

images used, don't get detected. #43

Open lysps opened 5 months ago

lysps commented 5 months ago

Images pasted in this format “>[!info]- ” seem to be undetected and get cleaned up. And,images in the tables generated by the table extended plugin cannot be detected either.

I'm using an AI translator, so if my explanation isn't clear, please bear with me. We can communicate more if needed.

lysps@qq.com

husjon commented 5 months ago

Hi, no problem about using translator, I understood what you meant. :)

With > [!info] blocks, I am not able to replicate the issue. With the following example it works as expected on my end.

> [!info]
> ![[my_image.png]]

I've attached a quick video for reference.

https://github.com/husjon/obsidian-file-cleaner-redux/assets/554229/5724121f-cc07-4e12-b06f-b8bf45fafecd

As for the second part, images in tables, could you add a comment with an example of how this table is formatted?

Thanks

lysps commented 5 months ago

images in tables like this. i use the plugin table extended...

Snipaste_2024-03-24_21-19-12 Snipaste_2024-03-24_21-20-06
lysps commented 5 months ago

And the first part like this

Snipaste_2024-03-24_21-30-58 Snipaste_2024-03-24_21-31-08
lysps commented 5 months ago

@husjon

husjon commented 5 months ago

Hmm, images in code blocks like the following ```tx, is not supported unfortunately. The implementation needed to make this work would make the cleanup extremely slow. What you can do to get around this is to add image references in the frontmatter like the following: images: "[[path/to/image.png]]"

Reference: #45

husjon commented 2 months ago

Hi @lysps since the Table Extended plugin seem to unmaintained I will no add support for it (it has not been updated in 2.5 years). Since Obsidian now have native support for tables, I recommend using this instead.

If Table Extended does gets updated in the future I will consider adding it.