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

{var:date} format and customizations #11

Closed
prattatx opened this issue Jan 22, 2021 · 2 comments
Closed

{var:date} format and customizations #11

prattatx opened this issue Jan 22, 2021 · 2 comments

Comments

@prattatx
Copy link

My system date formats have a custom format to show 3 letter day in the medium format:
image

Output from Alfred on the script. Date for filename isn't formatted to my custom {date:medium}
[11:51:54.709] Obsidian Utilities[Keyword] Processing complete [11:51:54.713] Obsidian Utilities[Keyword] Passing output 'example add to daily note' to Arg and Vars [11:51:54.714] Obsidian Utilities[Arg and Vars] Processing complete [11:51:54.714] Obsidian Utilities[Arg and Vars] Passing output 'example add to daily note' to Conditional [11:51:54.715] Obsidian Utilities[Conditional] Processing complete [11:51:54.715] Obsidian Utilities[Conditional] Passing output 'example add to daily note' to Write Text File [11:51:54.716] Obsidian Utilities[Write Text File] Processing complete [11:51:54.716] Obsidian Utilities[Write Text File] Passing output '/Users/jp5273/Documents/git/jp5273/Notebook/daily_notes/2021-01-22.md' to Open URL [11:51:54.743] Obsidian Utilities[Keyword] Passing output 'example add to daily note' to Run Script

The date format for the filename coming through the log is "yyyy-mm-dd.md". I think Alfred uses date:medium, but somehow it is not.

This is how it turns out within Obsidian:
image

Is there a way to set this in variables? how is that done?

@macedotavares
Copy link
Owner

There's an Args and Vars module right after the keyword. The format for the date variable is defined there. So, if you change the date value to {date:medium}, it should work.

@prattatx
Copy link
Author

Excellent! Thank you, again! This worked once I found the Args and Var module. I had been trying to change it in the "Append to file" module.

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

No branches or pull requests

2 participants