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

[FR] expand template specifiers in note title #269

Open
Sleepful opened this issue Jul 7, 2023 · 1 comment
Open

[FR] expand template specifiers in note title #269

Sleepful opened this issue Jul 7, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Sleepful
Copy link
Contributor

Sleepful commented Jul 7, 2023

Feature request

Simple, if I type this in the input for title:
{{year}}-recipes
I want it to expand in the filename to:
2023-recipes


Addendum

Something cool that already works is that if you have a template which includes {{title}}, the specifier in the title will be expanded inside the note.

E.g.

Template:

---
title: {{title}}
---

Title: {{year}}-recipes

Result:
{{year}}-recipe.md

---
title: 2023-recipe
---
@Sleepful Sleepful added the enhancement New feature or request label Jul 7, 2023
@lambtho12
Copy link
Member

This might be useful indeed, but it is not very high priority.

Note to myself (or anyone who will implement it), we need to prevent recursion when someone will inevitably type {{title}} as their note title.

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

No branches or pull requests

3 participants