Skip to content

Best way to save file based on template? #499

Answered by epwalsh
fredrikaverpil asked this question in Q&A
Discussion options

You must be logged in to vote

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" }

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@fredrikaverpil
Comment options

@epwalsh
Comment options

@fredrikaverpil
Comment options

Answer selected by fredrikaverpil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants