Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deletes non-image files, can't configure Attachments folder #16

Open
jcezarms opened this issue Jun 21, 2022 · 0 comments
Open

Deletes non-image files, can't configure Attachments folder #16

jcezarms opened this issue Jun 21, 2022 · 0 comments

Comments

@jcezarms
Copy link

Scenario

Under the assumption this plugin only deletes images, one could remove important, external assets, like done below:
image
My specific usecase involves dynamic plotting within notes, which then requires me to have d3.js in the vault's root for the Plotly plugin. This file is also outside the configured Attachments folder, which I naively assumed would be the only target of this plugin, and which is not currently configurable to become the only target¹.

¹ Obsidian attachments folders are always inside the Vault, so the "Exclude Full Paths" option is not applicable for trying to ignore anything outside said folder. Excluding path/to/vault also excludes path/to/vault/attachments. The "Exclude subfolders" is similarly not applicable, since it's the parents of Attachments that need to be ignored.

Possible Solutions

  • Check file extensions before clearing, or change the whole premise of the plugin to be "Clear Files" instead of "Clear Images"
  • Have either an "Include-only" path setting, or a toggle for "Only clear within configured Attachments folder"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant