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

Template is Inserted Twice on Folder Note Creation #187

Open
LennartCode opened this issue Jan 2, 2025 · 1 comment
Open

Template is Inserted Twice on Folder Note Creation #187

LennartCode opened this issue Jan 2, 2025 · 1 comment

Comments

@LennartCode
Copy link

Summary

When creating a folder note using the context menu or the Folder notes: Create markdown folder note for current folder of active note command, the template specified by the Template path property is inserted twice.

Expected Behaviour

The template is inserted once.

Actual Behaviour

The template is inserted twice, for example resulting in Template TextTemplate Text for a template file only containing the String Template Text.

Reproduction Information

  1. Create a new vault
  2. Install the Templater Plugin
  3. Install the Folder Notes Plugin (this one)
  4. In the Templater plugin settings, set the template directory to the vault root /
  5. Create a markdown file called template with content Template Text
  6. In the Folder Notes plugin settings, set the Template path to the template file
  7. Create a new folder

Now either
8. Right-click it and select Folder Note Commands > Create markdown folder note

or
8. Create a new file in the newly created folder and open it
9. From the command palette, run the command Folder notes: Create markdown folder note for current folder of active note

Observe, that the new folder note is created with the text Template TextTemplate Text inserted.

Known Workaround

Creating a folder note using the specified click action (such as ctrl+click, alt+click) does not insert the template twice.

@LostPaul
Copy link
Owner

LostPaul commented Jan 2, 2025

Thank you for the detailed description and reproduction list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants