obsidian-periodic-notes icon indicating copy to clipboard operation
obsidian-periodic-notes copied to clipboard

Open weekly note only works on Sunday

Open SimonSkade opened this issue 1 year ago • 8 comments

(For all other periodic notes it just works as intended, so that you can open the periodic note before the last day of the period, but when I want to write something into my weekly note before Sunday, it says "unable to create weekly note".)

SimonSkade avatar May 07 '23 11:05 SimonSkade

I'm getting a similar error, but it seems like it's trying to make a weekly template for the previous week. For instance, it's week 19 but it created a week 18 file. When I delete the week 18 file, it will recreate it.

Is that similar for you @SimonSkade ?

mbbroberg avatar May 08 '23 15:05 mbbroberg

Ok, I reorganized my Calendar plugin (switched the week to begin with Mon instead of Sun just to fiddle) and it now works again as previously designed. Not sure which plugin got caught up where but I'm not affected.

mbbroberg avatar May 08 '23 16:05 mbbroberg

I was assuming weeks go from Monday to Sunday, in which case the file I can create on Sunday is of the correct week. It seems like it recognizes the KW as intended, but the "open weekly note" only works on Sunday. Intuitively this seems like sth that might be very quickly fixed by someone who knows the codebase, but idk.

image

SimonSkade avatar May 09 '23 09:05 SimonSkade

Not sure if this is directly related...

I am creating a plugin for Obsidian named Daily Note Outline. DNO reads periodic notes, However, when I set the beginning of the week to Monday in the Calendar plugin, I could not load the weekly notes. I found out that moment.js holds the information about settings such as the first day of the week, but my plugin newly called moment.js, so the settings were not passed on correctly, which seemed to be the cause of the problem. (I'm a novice programmer, so my expression may not be correct). Replacing all moment() in my plugin with window.moment() seems to have solved the problem.

It seems to me that somewhere in the sequence of processes, there may be an inconsistency in the first day of the week or locale settings in moment.js.

iiz00 avatar May 12 '23 03:05 iiz00

I'm getting a similar error, but it seems like it's trying to make a weekly template for the previous week. For instance, it's week 19 but it created a week 18 file. When I delete the week 18 file, it will recreate it.

Is that similar for you @SimonSkade ?

I'm not @SimonSkade, but this matches my issue exactly. This may be related to a change in Obsidian - it was working properly before I upgraded several versions (now on Obsidian 1.3.7).

mossadacity avatar Aug 09 '23 17:08 mossadacity

A functional if unsatisfactory workaround;

  • disabling Weekly notes in this Periodic Notes plugin
  • enabling the core Daily Notes plugin
  • setting Daily Notes plugin to use Date Format and File Locations for weekly notes
  • setting Daily Notes keyboard shortcuts to navigate between Weekly notes

mossadacity avatar Sep 16 '23 02:09 mossadacity

Bump this

brianbecsi avatar Sep 22 '23 19:09 brianbecsi

I literally have no use for the calendar plugin, but have it as a workaround for this. Would like to see this be fixed.. +1

jun6lee avatar Jan 21 '24 07:01 jun6lee