Skip to content

Wiki links not finding files in parent directories #775

@sricks

Description

@sricks

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions