Use the current note name in the attachment subfolder name

Agree, it’s unsolved problem. Not sure if there’s one-size-fits-all approach.

Providing more configurable options would be a positive development though. Being able to define default folders depending on where in the folder structure one is, would be a welcome improvement.

2 Likes

ZimDesktopWiki put attachments to a separate folder for each note. I checked it again and its very similar to Obsidian and more.

3 Likes

In terms of UX, something that could be done is just keep the same input and allow for the user to put a relative path or an absolute path.

For example:

/attachments/

Would be in the root, while:

attachments/ 

or

./attachments/

Would be relative.
3 Likes

yep relative folders would work for me as well

especially if ./ is allowed - eg save image in same path as note.

Heres a related post with some
more suggestions to follow typoras approach as well

1 Like

+1 for image folder based on filename - like Typora

3 Likes

Currently the pasted images get names like “Pasted image.png”.
It would be nice if they could maybe have a name like “2020083101_server.png” or “server_2020083101.png”.
The second one would make it easier to see to which note they belong.
There is a similar thread here: Pasting images

2 Likes

I agree, having a lot of “Pasted” filenames isn’t very handy when attempting to link manually, or find images in the filesystem later.

It would also be nice if you could simply rename the attachments directly from Obsidian, updating the filename, as well as any links.

Edit, I am going to merge these threads, since the feature request is very similar. I suggest adding your vote/discussion to existing threads when possible, rather than starting a new one.

2 Likes

Thanks will do so next time.
I just thought it would be better to open a new feature request because it felt like two different features (file names and the interface for pasting).

Yeah, this existing feature request covers a different range of suggestions. Some of which I disagree with. (I wouldn’t want a pop-up, for example.) But the underlying concern is that pasting images could be improved, and I think your point adds well to this.

2 Likes

I believe you can in fact rename directly from Obsidian - if you put the cursor on the image link and hit alt+enter it will open in a page as if it’s an Obsidian note, and you can change the title and have all links update just like you can with markdown.
It’s more context-switching than it should be, I’d prefer them automatically named based on the ‘parent’ note, but it’s been okay for me for now

5 Likes

:exploding_head: Whoa.

Thanks! I had completely missed that. That is a good enough workaround for me for the time being.

A simple keyboard shortcut like alt-enter that allows renaming without changing notes (similar to the linking tooltip) :+1:

1 Like

I’ve found two different feature requests that are similar to mine but not the same:

What I am looking for is different.

I’d love for Obsidian to be able to create whatever I paste in the folder that I am in, when pasting.

In other words, I might be in:

/personal/books/reviews/50shadesofpink/

…but, if I paste, whatever I paste either ends up in the root or in the folder that I’ve assigned to contain my pasted object.

I’d simply like the folder to differ depending on where in Obsidian I am working at the moment. I’d love not to be in /personal/books/reviews/50shadesofpink/ and subsequently have to drag-and-drop fifty (!) objects from the root to my current location.

Cheers!

6 Likes

+1 I need this feature too,thank you

I support this wholeheartedly!

I never expected this request of mine to be my most popular forum post. :man_shrugging:t2:

I read the thread about open sourcing obsidian and read a very good reply by @Silver on aligning incentives.

So I think I will put up money where my mouth is. I will donate 50 USD for every feature below that is possible.

  1. Upon copy paste an image to a ${filename}.md, and the image can go to ./${filename}.assets
  2. Upon copy paste an image to a ${filename}.md, and the image can go to current folder (./)
  3. I can choose to apply the copy paste rule to in an exclusive OR manner i.e. local images XOR online images

Hope this helps

Tagging @Silver, @Licat who I think are the obsidian team

6 Likes

I need this feature too. Has it been already added?

1 Like

This would be really fantastic. If images (and other files) were automatically copied to ${filename}.assets/ and then linked with a relative path in the .md file, the note would finally open seamlessly in other markdown editors and on other computers (like if the project directory was in dropbox).

2 Likes

+1 would also really love to see this!

I gave this a go using the Templater plugin. It’s a hacky solution for my specific use case but it is working well for me.

2 Likes