obsidian-file-cleaner-redux icon indicating copy to clipboard operation
obsidian-file-cleaner-redux copied to clipboard

images used, don't get detected.

Open lysps opened this issue 1 year ago • 6 comments

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.

[email protected]

lysps avatar Mar 10 '24 13:03 lysps

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

husjon avatar Mar 10 '24 17:03 husjon

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 avatar Mar 24 '24 13:03 lysps

And the first part like this Snipaste_2024-03-24_21-30-58 Snipaste_2024-03-24_21-31-08

lysps avatar Mar 24 '24 13:03 lysps

@husjon

lysps avatar Mar 27 '24 15:03 lysps

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 avatar Mar 28 '24 17:03 husjon

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.

husjon avatar Jun 04 '24 07:06 husjon

Hi @lysps, just wanted to let you know that I will soon be adding support codeblocks parsing (see #90).

This will allow a user to set which blocks should be checked (in your case tx) by adding it in the settings tab for the plugin.

husjon avatar Feb 19 '25 19:02 husjon

Just to let you know that this will be fixed as of version 1.6.0

This issue will be closed automatically when the fix has been applied.

husjon avatar Feb 28 '25 20:02 husjon