Choose path when pasting images

Typora has image preferences.

Given that that’s a lot, I recommend prioritizing the following:

  1. when insert, provide these 3 options

image

  1. and then just offer these 2 options after the when insert
  • [ ] Apply above rules to local images
  • [ ] Apply above rules to online images

I love typora. Hope to see obsidian follow their well thought out design when possible

33 Likes

Came here to post a similar request so shall add mine as a comment: Can we also have a default save location for assets in the settings like we do with the daily notes and new notes.

3 Likes

@barbarianbard are you using “Set as attachment folder”?

image

2 Likes

In .obsidian/config:

"attachmentFolderPath": "images",

I like how typora keeps assets related to a note in (linked by name) a separate folder.
In note system where you move notes between folders, this helps out a lot in migration.

For e.g. - I put daily notes in Inbox folder then at EOD sort them in respective folders. Although obsidian doesn’t mind it, moving attachments takes care of OCD tick.
In rare case if I delete a note, it will also let me know if any there any lingering attachments left.

4 Likes

+1 for image folder based on filename - like Typora

3 Likes

+1 I need this feature too,thank you

Use Case

I use Greenshot a lot when writing articles and copy images to the clipboard before pasting them into the documents I am working on.

Current behavior

  • A generic image name is automatically assigned to the image (With no easy way of renaming the file name afterwards.)
  • Only one asset folder location can be specified

I typically have many images in my documents and putting them all in the one folder gets really messy really quickly. I basically need one image folder per document.

Improvement suggestions

  1. When pasting an image, show the image in a pop-up window and allow the user to name the image and choose the folder it should be stored in.
  2. Allow each markdown document to specify the folder path the images should be saved into, in the YAML frontmatter. (Should be able to work with relative paths to the document location)
  3. A combination of the 2 previous points. (but would be very happy if only point 2 was implemented)

Aim

A really seamless way of quickly inserting images into documents and automatically saving them in the correct folder.

Allow the user to name the file as it is pasted into the document or being able to easily rename the file after it is pasted.

14 Likes

Thanks for bringing this up. I agree that this would be very useful. Even having a date-prefix to the pasted image would be more useful than “Pasted image”.

8 Likes

Agree. Good sugestion. I am acostumated to use many images in my notes and so far Obsidian has not reached the sweet spot on this.

4 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.

1 Like

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

4 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

I support this wholeheartedly!

I came here with the same request. A single attachments folder per vault is definitely better than them all being in root. But my ideal would be to be able to specify an attachment sub-folder per high-level folder. A new image would then save to the “nearest” attachment folder on its path.

6 Likes