obsidian-image-gallery
obsidian-image-gallery copied to clipboard
Support relative paths
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.
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
This feature would help me a lot +1
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.
This is very helpful for long term usage...
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);