-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Requesting support for dynamic file names, such as diary notes. #203
Comments
You can already do something like this by using e.g. JS Engine. I should add an example of that to the docs at some point. But I am not adding support for this templater syntax. |
Thank you very much for your reply. Are you referring to the JS Engine in the project mProjectsCode/obsidian-js-engine-plugin? If it's possible, would you have the time to give me some guidance or provide examples? I would greatly appreciate it. |
I will add an example to the docs when i get around to it. |
I can get today's date from nldates-obsidian:nlp-today, but I can't figure out how to get it to updateMetadata. Maybe there is something really obvious I'm missing. This is what I have so far.
Apologies if this isn't the right place to post this! |
Clicking the button puts the date at the cursor location, not in the metadata field. |
yeah, because that's what the command you are running does. |
I just added some advanced use-case examples to the docs. |
Thanks for the suggestion. I've updated the button and it works as intended! Here it is if anyone is interested, you'll need JS Engine plug-in installed & enabled.
|
Is your Feature Request Related to a Problem?
Requesting support for dynamic file names, such as diary notes.
I hope to support dynamic dates with the templater plugin for the following reasons:
Scenario to Implement
What I want to achieve is the ability to modify the diary for a specific date using Meta Bind, such as today.
Suppose there is a practical application scenario where I've designed a button using Meta Bind and placed it on the right side of the homepage. By clicking the button, I can change the daily status, such as recording exercise, reading, and so on.
To achieve this goal, I certainly can't generate a Meta Bind button every day. It's more convenient to modify it directly in the diary file.
Here are a few issues:
Current Challenges
For example:
Using the templater plugin's
<%+ tp.date.now("YYYY-MM-DD") %>
syntax, in reading mode, it will automatically fetch today's date.INPUT[toggle:<%+ tp.date.now("YYYY-MM-DD") %>#completed]
Describe the Feature you'd Like
Desired Functionality
I hope Meta Bind can be compatible with this dynamic template syntax of the templater plugin, allowing them to be used together. This would make Meta Bind more flexible.
For example, it could be used to create a panel to control diaries in Obsidian for studying, exercising, and recording regular work, making it very practical and interesting.
Additional Context
No response
The text was updated successfully, but these errors were encountered: