obsidian-image-gallery icon indicating copy to clipboard operation
obsidian-image-gallery copied to clipboard

Support relative paths

Open shayded-exe opened this issue 2 years ago • 5 comments

I use folder notes for my galleries. I would like to be able to generate a gallery from all images in the current folder.

Currently, if I move a folder, I have to manually update the gallery paths.

shayded-exe avatar Jan 07 '23 14:01 shayded-exe

I would love to see support for relative paths as well. It would be great to be able to do something like:

path: ./screenshots/
type: vertical

roadscape avatar Jan 24 '23 23:01 roadscape

This feature would help me a lot +1

kuzmandi avatar Mar 08 '23 14:03 kuzmandi

A second to that. Relative links would be absolute great. Obsidian is still not very good with relative links, but each improvement that eases the pain is welcome.

Actually, not being able to have the links relative significantly limits my use of this plugin.

pdolezal avatar Mar 27 '23 11:03 pdolezal

This is very helpful for long term usage...

nodegraphics avatar Mar 04 '24 04:03 nodegraphics

if you are still looking for relative path for this I needed it for my vault and got it working well enough. Here is the changes to the main.ts file in the .obsidian/plugins folder

replace: settings.path = (0, import_obsidian2.normalizePath)(settingsSrc.path);

with: const currentFilePath = this.app.workspace.getActiveFile().path; const currentDir = currentFilePath.substring(0, currentFilePath.lastIndexOf('/')); settings.path = import_obsidian2.normalizePath(currentDir + "/" + settingsSrc.path);

theebio avatar Apr 18 '24 18:04 theebio