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

Wiki links not finding files in parent directories #775

Open
sricks opened this issue Sep 26, 2024 · 0 comments
Open

Wiki links not finding files in parent directories #775

sricks opened this issue Sep 26, 2024 · 0 comments

Comments

@sricks
Copy link

sricks commented Sep 26, 2024

With the wikilinks feature, I can only link to markdown files in the same directory or child (subdirectories) of the current directory.

Example directory structure:

- /
  - animals/
    - elephants.md
  - cars/
    - tiger.md

Within elephants.md it is seemingly impossible to link to /cars/tiger.md. I tried [[tiger]], [[cars/tiger]], [[/cars/tiger]], and [[../cars/tiger]]

I looked at the documentation which indicates this is expected behavior?

search the current open file's directory (and sub-directories) for a file with a matching name

But this makes it very difficult to use as a personal wiki unless you put all the files in a single directory?

I'd expect [[/cars/tiger]] to work... or even drop the first slash and make it assume root directory would be more ergonomic, eg [[cars/tiger]].

It might be cool to just use [[tiger]] and allow selecting within a pallete if there are duplicates but could live without that if needed.

By the way, I just learned that wikilinks are supported despite using this package for some years; could use a mention in README.

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

1 participant