You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the tooltip to create a note from a template, and the template has a filepath specified, the wikilink is not linked up. I assume this is because the filepath no longer matches the text in the wikilink.
Small Reproducible Example
No response
Steps to Reproduce the Bug or Issue
Create a template that changes the filepath of notes created with it
Create a wikilink, and use the hover tooltip "Create note from template" option to create the note
Note is created with the correct filename, but the wikilink is not updated with the right name
Example Template:
---foam_template:
name: 'Example Template'description: 'An example for reproducing a bug'filepath: '$FOAM_DATE_DATE-$FOAM_SLUG.md'---
Expected behavior
The text of the wikilink should be updated to match the new notes title.
For example:
Given a wikilink [[test]], and a template that creates a file named 2024-01-26-test.md
I would expect that the wikilink gets updated to either [[2024-01-26-test]], (test)[2024-01-26-test] (probably not accurate, since it creates a markdown link instead of a wikilink), or create a link reference definitioon at the bottom of the page
Screenshots or Videos
Screen.Recording.2024-01-26.at.9.50.06.AM.mov
Operating System Version
macOS 14.3
Visual Studio Code Version
1.85.2 (Universal)
Additional context
No response
The text was updated successfully, but these errors were encountered:
Thanks for the clear bug report.
Yes, this definitely needs to be addressed, the expected behavior is that the wikilink will point to the new note using the appropriate Foam Identifier.
Describe the bug
When using the tooltip to create a note from a template, and the template has a
filepath
specified, the wikilink is not linked up. I assume this is because the filepath no longer matches the text in the wikilink.Small Reproducible Example
No response
Steps to Reproduce the Bug or Issue
Example Template:
Expected behavior
The text of the wikilink should be updated to match the new notes title.
For example:
[[test]]
, and a template that creates a file named2024-01-26-test.md
[[2024-01-26-test]]
,(test)[2024-01-26-test]
(probably not accurate, since it creates a markdown link instead of a wikilink), or create a link reference definitioon at the bottom of the pageScreenshots or Videos
Screen.Recording.2024-01-26.at.9.50.06.AM.mov
Operating System Version
macOS 14.3
Visual Studio Code Version
1.85.2 (Universal)
Additional context
No response
The text was updated successfully, but these errors were encountered: