argenos / nldates-obsidian

Work with dates in natural language in Obsidian
MIT License
496 stars 44 forks source link

New features: Support for week format specifier & additional default autosuggests #102

Closed gillesgagniard closed 2 years ago

gillesgagniard commented 2 years ago

This pull request adds the following features:

  1. A support for "week:" format prefix, similar to existing "time:", but applying a week format configurable in settings (use case is typically inserting current week number, next week number, etc ...). If dates are configured to be inserted as links in the settings, this PR allow for creating weekly links.
  2. Additional commands for parsing and inserting date formatted as weeks
  3. A new setting to configure the default autosuggest popup contents with additional entries (use case is customizing it to add "week:this week" or "time:now" for instance)