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

Create folder for new note if it doesn't exist #199

Merged
merged 2 commits into from
Jan 31, 2024
Merged

Conversation

SabriDW
Copy link
Contributor

@SabriDW SabriDW commented Dec 14, 2023

This creates the folder if the new note's path if it doesn't exist. Useful for organizing the children of a "parent" note template into their own folder using templater.

Example Use-case

This button is in a recurring meeting note which hosts a bunch of "children" meeting notes

```button
name New Meeting
type note(Notes/Meetings/<%tp.file.title%>/<%tp.file.title%> <%tp.date.now()%> Meeting, split) template
action Meeting Template
templater true
```

Currently if the <%tp.file.title%> folder doesn't exist, it throws a "There was an error! Maybe the file already exists?" error. This PR changes the behavor by creating the folder when one doesn't exist.

@shabegom shabegom merged commit 31faaac into shabegom:main Jan 31, 2024
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.

2 participants