argenos / nldates-obsidian

Work with dates in natural language in Obsidian
MIT License
497 stars 46 forks source link

Feature Request: Week (and month) notes format #93

Open b1uegh0st opened 2 years ago

b1uegh0st commented 2 years ago

Hi,

Thanks for the great plugin. I would like to suggest an option to parse @this week @next week into proper link to weekly notes (not everyone use this concept, but many do, I think).

More specific:

AwePhD commented 2 years ago

Hi!

Thanks for this convenient plugin. I was about to write a same issue for the same feature!

I would suggest to implement this option based on Periodic Notes plugin. Namely, there is a "Format" value to fill to have the expected file name format. For example: Weekly Notes have default format gggg-[W]ww in order create weekly note such as 2022-W13.

So, this parsing option for week and month notes can be done by replacing the first day of the month ( or week) when using @this month (respectively @this week) by the according note reference. The "Format" reference could be set in Options of Natural Language Dates plugin in order to match Periodic Notes Format ( or any other plugins that have this feature that I'm not aware of).

Thanks again for your time and effort writing this plugin. It's highly appreciated.

julienreszka commented 2 years ago

Here's my suggestion for naming the triggers to avoid the confusion with last week, this week and next week

Previous week 
Current week
Following week
djbowers commented 2 years ago

I would love this feature. When typing @this week I would much rather it link to my weekly note than the first daily note for that week.

Ampa commented 2 years ago

Came to request the same thing. Would dearly love to link my weekly and monthly notes using your super convenient plugin!

DanielYehezkeli commented 2 years ago

came to support this request, would be fantastic if possible. thank you so much for your plugin!

gillesgagniard commented 2 years ago

I've opened #102 which adds support for week formats, in the form of a 'week:' prefix which can be applied to any date specifier, based on the already existing implementation of time: prefix.

When "Add dates as link" is enabled, weekly links are created.

tophee commented 1 year ago

@gillesgagniard I saw that you have an updated PR at https://github.com/argenos/nldates-obsidian/pull/107 but since it doesn’t look like it’s going to be merged, I wonder what the best way would be to get this feature. Should I just use your repo or what would you recommend?

yoghurtdewdew commented 1 year ago

https://github.com/argenos/nldates-obsidian/issues/93#issuecomment-1093118797 Yes! Hope this could support more peridic notes! I would like to open weekly/monthly/quarterly/yearly note better than a date in a week/month/quarter/year.

And hope this would support advanced uri, too! Like obsidian://nldates?day=this-week and more!

t3mujin commented 6 months ago

This would be great, it might require some configuration, specially for defining the format for week date (I like the 2024-W12 format, but it's far from being universal), but I link the ideal to link to a given week, and not just the first day of the week.

codey-badger commented 1 month ago

@gillesgagniard I saw that you have an updated PR at #107 but since it doesn’t look like it’s going to be merged, I wonder what the best way would be to get this feature. Should I just use your repo or what would you recommend?

Hi @tophee Did you make it? Is it working?

tophee commented 1 month ago

@codey-badger unfortunately not.

gillesgagniard commented 3 weeks ago

Hello @tophee amd @codey-badger ! On my side I've been using the feature/week branch of my fork for the last 2 years, which I manually install into my obsidian vault plugins. BTW I've just rebased it on the latest master from this repo, it still builds and runs fine.