chrisgrieser / shimmering-obsidian

Alfred Workflow with dozens of features for controlling your Obsidian vault.
https://alfred.app/workflows/chrisgrieser/shimmering-obsidian/
MIT License
817 stars 40 forks source link

[Bug]: Template not working when creating a new note #141

Closed edoski closed 1 year ago

edoski commented 1 year ago

Bug Description

After having set in the configuration the note path to my template of choice, I noticed that when using the command on <new_note_title> it would create the new note, import the template, but wouldn't swap text segments like {{date:YYYYMMDD}} with the actual date itself.

To note, it would work with {{title}} in the title section of the note, but wouldn't for any that were in the note body like the above mentioned {{date:YYYYMMDD}}.

Relevant Screenshot

image

To Reproduce

No response

Debugging Log

[17:56:39.445] Shimmering Obsidian[Script Filter] Queuing argument '(null)'
[17:56:45.275] Shimmering Obsidian[Keyword] Processing complete
[17:56:45.283] Shimmering Obsidian[Keyword] Passing output 'test note' to Run Script
[17:56:45.562] Shimmering Obsidian[Run Script] Processing complete
[17:56:45.565] Shimmering Obsidian[Run Script] Passing output '01 Fleeting Notes/Test note.md
' to Call External Trigger
[17:56:45.566] Shimmering Obsidian[External] Processing complete
[17:56:45.566] Shimmering Obsidian[External] Passing output '01 Fleeting Notes/Test note.md
' to Run Script
[17:56:45.854] Shimmering Obsidian[Run Script] Processing complete
[17:56:45.859] Shimmering Obsidian[Run Script] Passing output '' to Hide Alfred
[17:57:04.869] Logging Stopped.

Workflow Configuration

image image image image

Version & System Information

(oinfo command not working)

- macOS: 14.0 Beta (23A5286i)
- Alfred: v5.1.1 [2138]
- Obsidian: v1.3.7
- Workflow: v3.12.8
- Metadata Extractor: v1.1.0
- Advanced URI: 1.36.5

- allExceptMD.json, tags.json, metadata.json: All in folder and all non-empty.
- {vault-path}/.obsidian/workspace.json: Exists.

- Environment Variables: In Relevant Screenshot section.

Last working version

No response

Make sure you have done the following

chrisgrieser commented 1 year ago

That's not a bug, that's simply not a feature this workflow has implemented.

I see little value in implementing templating functionality when there are Obsidian plugins that can already do that.

So to get things like date insertion, please use a plugin like Templater

edoski commented 1 year ago

Ahh I see, that makes sense, thanks for the clarification!