trganda / obsidian-attachment-management

Attachment Management of Obsidian
MIT License
142 stars 8 forks source link

Can this plugin work if attachments are in a subfolder like this? ... Vault / Folder / attachments / {notename} / .... here comes attachment #121

Open itoldusoandso opened 1 month ago

itoldusoandso commented 1 month ago

I am using Attachment MANAGER plugin because I couldn't figure out the Attachment MANAGEMENT plugin here to work the way I need. I want to save attachments to this folder:

Vault / Folder / attachments / {notename} / .... here comes attachment

So it's one level deeper into a subfolder in attachments folder. The subfolder is named after the note name.

The issue is I can't figure out how to make it work with this plugin here.

So instead I am using Attachment MANAGER, another plugin which works. But.. I also need to rename the attachments. For that I was hoping to use the Attachment Name Formatting plugin, but renaming only works if the attachments are in the attachments folder but doesn't work if attachments are one level deeper in a subfolder, like it's my case.

So I am wondering whether this plugin here Attachment MANAGEMENT can be configured the way I need.

I tried this but didn't work (and number of variations of this ... .. and of course I have other plugs disabled when testing to make sure there are no conflicts):

image

Here is my Obsidian setting:

image

tibtiq commented 1 month ago

Hey, is this the layout you're looking for? image

My settings for "Files and links" image

My settings for "Attachment Management" image

itoldusoandso commented 1 month ago

Thank you! Got this working. The plugin is supported on the mobile, which is great.

I see when I put the question there I had in the File and links window had _resources folder for attachments. That is what I use actually, just didn't want to complicate things explaining here.

So yes, what I need is this and I got it working now:

image


So now my settings are:

.

- image

image

-

So this will initially place the new attachment in the _resources folder like this:

image

It puts the attachment there without creating a subfolder and without renaming the attachment.

To trigger the subfolder creation and renaming, I have to rename the note:

image


I am okay with this, if I have to rename the new note, to get the attachment properly sorted and renamed, that is okay. My guess is the plugin wasn't designed right now to trigger renaming and creating subfolder otherwise. Maybe something would be nice to have in the future. But not a big deal, just slightly inconvenient, but that's okay.

Just have to remember to rename the note every time attachment was added.'