Intended to handle the popular "Periodic Notes" community plugin. As a consequence, all files in the collection must be placed in the same folder.

Implements
Hierarchy

Constructors

  • Parameters

    • config:
          | {
              dateFormat: string;
              dateOptions: DateTimeOptions;
              folder: string;
              intervalDuration: Duration<true>;
              intervalOffset: Duration<true>;
          }
          | {
              dateFormat: string;
              dateOptions?: DateTimeOptions;
              folder: string;
              intervalDuration: DurationLike;
              intervalOffset?: DurationLike;
          }
      • {
            dateFormat: string;
            dateOptions: DateTimeOptions;
            folder: string;
            intervalDuration: Duration<true>;
            intervalOffset: Duration<true>;
        }
        • dateFormat: string

          The format used to parse a DateTime from file names. Must work for both parsing and formatting.

        • dateOptions: DateTimeOptions

          Luxon options used when parsing DateTimes from file names.

        • folder: string

          The folder containing all of the notes. TODO: Support files organized into different folders.

        • intervalDuration: Duration<true>

          The Duration of each file's corresponding Interval. Daily notes, for example, should use a duration of { days: 1 }.

        • intervalOffset: Duration<true>

          Offset between the file's parsed date and the corresponding Interval's start date. May be negative. Sprint notes, for example, can use ISO weeks for dateFormat and intervalOffset for their weekday.

      • {
            dateFormat: string;
            dateOptions?: DateTimeOptions;
            folder: string;
            intervalDuration: DurationLike;
            intervalOffset?: DurationLike;
        }
        • dateFormat: string

          The format used to parse a DateTime from file names. Must work for both parsing and formatting.

        • OptionaldateOptions?: DateTimeOptions

          Luxon options used when parsing DateTimes from file names.

        • folder: string

          The folder containing all of the notes. TODO: Support files organized into different folders.

        • intervalDuration: DurationLike

          The Duration of each file's corresponding Interval. Daily notes, for example, should use a duration of { days: 1 }.

        • OptionalintervalOffset?: DurationLike

          Offset between the file's parsed date and the corresponding Interval's start date. May be negative. Sprint notes, for example, can use ISO weeks for dateFormat and intervalOffset for their weekday.

    Returns PeriodicNotes

Properties

dateFormat: string

The format used to parse a DateTime from file names. Must work for both parsing and formatting.

dateOptions: Readonly<DateTimeOptions>

Luxon options used when parsing DateTimes from file names.

folder: string

The folder containing all of the notes. TODO: Support files organized into different folders.

intervalDuration: Duration<true>

The Duration of each file's corresponding Interval. Daily notes, for example, should use a duration of { days: 1 }.

intervalOffset: Duration<true>

Offset between the file's parsed date and the corresponding Interval's start date. May be negative. Sprint notes, for example, can use ISO weeks for dateFormat and intervalOffset for their weekday.

Methods