obsidian.nvim icon indicating copy to clipboard operation
obsidian.nvim copied to clipboard

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

Open CamdenClark opened this issue 2 years ago • 6 comments

🚀 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 avatar Sep 21 '22 04:09 CamdenClark

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

CamdenClark avatar Sep 21 '22 05:09 CamdenClark

That would be awesome! Please do!

epwalsh avatar Sep 22 '22 17:09 epwalsh

@CamdenClark did you implement it? :smile:

ajmasia avatar Jan 10 '23 15:01 ajmasia

@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.

evtuhovich avatar May 31 '23 17:05 evtuhovich

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

aaronmcadam avatar Jul 14 '23 10:07 aaronmcadam

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?

evtuhovich avatar Jul 14 '23 10:07 evtuhovich