Skip to content

Fix wikilink heading action not finding files in sub-directories#440

Open
3bnz wants to merge 1 commit into
Feel-ix-343:mainfrom
3bnz:wikilink-heading-action
Open

Fix wikilink heading action not finding files in sub-directories#440
3bnz wants to merge 1 commit into
Feel-ix-343:mainfrom
3bnz:wikilink-heading-action

Conversation

@3bnz
Copy link
Copy Markdown

@3bnz 3bnz commented May 11, 2026

Hey,

I'd like to propose a small fix.

Issue

Consider a vault:

vault
├── foo.md # Contains `[[bar#Does Not Exist]]`
└── sub
    └── bar.md

Currently running the code action on the unresolved wiki-link will create a new bar.md file at the root of the vault (or wherever it's configured) and result in:

vault
├── bar.md # New file was created
├── foo.md
└── sub
    └── bar.md

Fix

Strip the heading part to create a link only reference - then use the same logic as gotodef.rs to find the existing nested file-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

Successfully merging this pull request may close these issues.

1 participant