Skip to content

Daily note should use your template in .obsidian/daily-notes.json #12

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

Open
CamdenClark opened this issue Sep 21, 2022 · 6 comments
Open
Labels

Comments

@CamdenClark
Copy link

🚀 The feature, motivation and pitch

If obsidian.nvim seeks to replicate the behavior of the existing obsidian core plugins, this would be a really nice feature to have.

ie:

{
  "folder": "Daily",
  "template": "Templates/Daily",
  "autorun": false
}

and use that template to generate as opposed to a mandated file.

Alternatives

Don't know of any alternatives other than editing the source, and might as well just edit it for everyone's support.

Additional context

No response

@CamdenClark
Copy link
Author

I'd like to try to implement this, with your permission!

@epwalsh
Copy link
Owner

epwalsh commented Sep 22, 2022

That would be awesome! Please do!

@epwalsh epwalsh added the good first issue Good for newcomers label Sep 22, 2022
@ajmasia
Copy link

ajmasia commented Jan 10, 2023

@CamdenClark did you implement it? 😄

@evtuhovich
Copy link
Contributor

@CamdenClark i'll implement this in a week, i hope.

But reading .obsidian/daily-notes.json is not a good idea, because it has strange date format (see https://momentjs.com/docs/#/displaying/format/). And reading and parsing the file just for one string - i don't want to do this.

But i can add template opt to daily_notes, and it will apply this template to new daily notes.

@aaronmcadam
Copy link
Contributor

Any news on this one? I think it'd be a handy feature :)

@evtuhovich
Copy link
Contributor

Sorry, I'm stil very busy. I'll try to fix it quickly, but it's not very easy task to apply templates. @CamdenClark may be you can?

shun095 pushed a commit to shun095/obsidian.nvim that referenced this issue Mar 5, 2025
…om-epwalsh

[chore] update changelog link
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants