-
Notifications
You must be signed in to change notification settings - Fork 730
Open
Description
Reproduction
- Create a Markdown file that contains a root-path relative link, for example:
[text](/shallow-work/weekly/2025-08-10-gpt-review.md)
- In VS Code with Foam enabled,
Ctrl+Click
the link in the preview or editor.
Actual
Foam creates a new note instead of opening the existing file at /shallow-work/weekly/2025-08-10-gpt-review.md
.
Expected
VS Code built-in link behavior: open the target file in the editor. Foam should follow the same behavior for root-path relative links and links to files under .foam
(for example templates), and not create a new note.
Notes
- The issue does not occur for relative links based on the current file path (e.g.
../weekly/...
) or for wikilinks ([[...]]
). - Example that also behaves unexpectedly:
[Weekly](../.foam/templates/weekly-review.md)
Environment
- VS Code
- Foam
- OS: Windows
Workarounds
- Use relative links from the current file path instead of root-path links, or use wikilinks.
Request
Please Keep Default VSCode bechavior Ctrl+Click
for root-path links
Success criteria (examples)
- Ctrl+Click on
/shallow-work/weekly/2025-08-10-gpt-review.md
opens that file in the editor (PASS). - Ctrl+Click on a
.foam
template reference opens the template file instead of creating a new note (PASS). - No new notes are created for existing files when following root-path links (PASS).
Metadata
Metadata
Assignees
Labels
No labels