Sergei-Korneev / obsidian-local-images-plus

This repo is a reincarnation of obsidian-local-images plugin which main aim was downloading images in md notes to local storage.
MIT License
250 stars 19 forks source link

[Feature request] Rename image based on .md file name #28

Open xh542428798 opened 1 year ago

xh542428798 commented 1 year ago

Hello, I really like your plugin. I am not a fan of Markdown's poor image management capabilities, but your plugin has given me great confidence in managing images in my Markdown notes and Obsidian. I would like to ask if it is possible to name images downloaded in a similar way to Paste Image Rename, based on the note name, since you mentioned a conflict with the Paste Image Rename plugin which made me give up using Paste Image Rename.

Sergei-Korneev commented 1 year ago

See my answer to the previous issue. I think this would just give a user more possibilities to create more duplicates in vault. Why would you need to name attachments by note name?

MDsza commented 1 year ago

Hi @Sergei-Korneev:congrats to your great Plugin what helps me every day to "dump" my second brain every day into Obsidian. I came across the exact issue @xh542428798 mentioned (Paste Image Rename, etc.). The reason why I need this exactly this opportunity is the following: I use the great Image Gallery Plugin by Luca Orio extensively for my notes including many images.

The good: it shows the images in a beautiful grid. The bad: the order of the images for the gallery is very important for me, but sorting it by Creation Time (ctime) or Modified Time (mtime) is not the same on Mac and on iPhone / iPad. Here this feature request becomes important. If I could rename the images after drag'n'drop into the note with the NoteName (and as Prefix "date:YYYY-MM-DD" and Suffix a Sequential-Number (best with 3 digits starting with "001") then I could sort just by name (what would be the same on every device).

Because of the fact, that every NoteName is unique in Obsidian (in addition with the Pefix and Suffix mentioned) duplicate names would not be a problem.

Hope this helps. Would be great to add this feature to your great Plugin. I am sure many would profit from it (not just @xh542428798 and myself ;-)

Best, Wolfgang from Switzerland

Sergei-Korneev commented 1 year ago

Because of the fact, that every NoteName is unique in Obsidian (in addition with the Pefix and Suffix mentioned) duplicate names would not be a problem.

Hi. It was not about names, but about file content.

We are probably talking about copied/pasted attachments here? Not downloaded. And about this plugin absorbing another plugin (paste image rename) Am I right? Guys, this is a slippery slope ;) and beside that it requires more and more man-hours from me)

MDsza commented 1 year ago

Thanks for your rapid answer: very appreciated! And yes, local images and yes, a 'slippery slope', I see.

Idea: would it be possible to add just an option like 'Without Renaming Attachments (on your own risk, because of possible duplicates)', then my file names - which I handle myself per batch-renaming - would stay intact.

This would help a lot, because now the plug-in just owerwrites them with cryptic names, what takes me my control over my files.

Does this make sense for you, too? You are so much deeper into this topic.

Sergei-Korneev commented 1 year ago

Guys, taking into account that it is basically an unpaid job for an open-source project, and the last few months I have been trying to make some money by working on a survival job, henceforth I will be supporting this project in my spare time.

And, of course, I can not expect that the result of my labor will please everyone.

MDsza commented 1 year ago

Hi @Sergei-Korneev, I totally understand your answer and appreciate every line of code - especially under this circumstances - from you. So just relax, all is fine, using your great plugin every day and letting it work in the background multiple times the day. I wish you good luck in your 'real life' an all the best for your work during working hours and your spare time. Best, Wolfgang from Switzerland.