Best way to save file based on template? #499
-
Hi 👋 and thanks for this very fine project! I would like to understand how to work with templates. I can create a new document based on a template with I also cannot run What's a good workflow here? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey @fredrikaverpil, sounds like we might need a new command for this, but you could also do this programmatically with obsidian.nvim's Lua API. For example: local client = require("obsidian").get_client()
client:create_note { title = "Foo", dir = client.dir / "notes" / "project1", template = "project_template" } |
Beta Was this translation helpful? Give feedback.
Hey @fredrikaverpil, sounds like we might need a new command for this, but you could also do this programmatically with obsidian.nvim's Lua API. For example: