TomNCatz / obsidian-gallery

Main Gallery to tag / filter / add notes to images. Display blocks to embed images inside notes. Display block to an image information
MIT License
41 stars 3 forks source link

[FR] Select images and add them in one file #29

Closed 7Codez closed 7 months ago

7Codez commented 7 months ago

Is it possible to select images and add all the selected images to one file? Just like I do when selecting images, then tag them all at once.

TomNCatz commented 7 months ago

when you have multiple images selected the context menu has an option to copy image links. These are copied in the embeded format, so if you paste them into a note they should all embed in said note.

Alternatively you can put the names of the images into the 'name:' section of a gallery block separated by commas and as long as 'exclusive:' is not set to true it should list them all out. I've been thinking of adding a context menu option to expedite this.

7Codez commented 7 months ago

It is accurate what you say, but if a property named "collect image" is added to the menu, the selected images will be collected. It will be the outcome of organizing a large number of photos into a single file, like collection.

TomNCatz commented 7 months ago

What do you mean by 'into a single file'? Do you mean you want those images to be moved to a new location on disc? The 'Move Images' option does this. Do you mean to have a single note that has a gallery with just those images in it? Cause that is the option I have been thinking about adding to the context menu that I described above.

7Codez commented 7 months ago

What do you mean by 'into a single file'? Do you mean you want those images to be moved to a new location on disc? The 'Move Images' option does this. Do you mean to have a single note that has a gallery with just those images in it? Cause that is the option I have been thinking about adding to the context menu that I described above.

Yes "have a single note that has a gallery with just those images in it"

7Codez commented 7 months ago

Will this result? Create a collection of multiple images after selecting them:

1- A user selects a stack of images.

2-The first image a user chooses is to be referenced as a cover.

3- As a result, there will be a .md file for the first selected image after that, containing links to the images that the user chose after that.

4- This way, there will be one file for the father’s photo and it will be linked to all the other photos, and it will also be linked to the father’s photo in the other photos.

7Codez commented 7 months ago

Or you can consider this suggestion:

1- A user selects a group of photos.

2-The first image becomes a cover and results in Meta Files that contain everything normally.

3- If a user (selects a group of images) in this case, the plugin obsidian-gallery adds this feature (Display blocks) under the (Meta Files) list.

4- Thus, these operations result in one normal file with a change to this condition, which is adding a list (Display blocks) consisting of (selects a group of images) only.

TomNCatz commented 7 months ago

I don't think I'm going to implement the album like functionality you are describing as a hotkey. I am providing several ways to take a group of images in the gallery and copy paste them to a note. Further work on this kind of functionality just isn't in scope right now.