Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support relative paths #17

Open
shayded-exe opened this issue Jan 7, 2023 · 5 comments
Open

Support relative paths #17

shayded-exe opened this issue Jan 7, 2023 · 5 comments

Comments

@shayded-exe
Copy link

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.

@roadscape
Copy link

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

@kuzmandi
Copy link

kuzmandi commented Mar 8, 2023

This feature would help me a lot
+1

@pdolezal
Copy link

pdolezal commented Mar 27, 2023

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.

@nodegraphics
Copy link

This is very helpful for long term usage...

@theebio
Copy link

theebio commented Apr 18, 2024

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants