Class PeriodicNotes
Implements
- PeriodicNotesConfig<true>
Hierarchy
- DateBasedCollection
- PeriodicNotes (View Summary)
Index
Constructors
Properties
Methods
Constructors
constructor
- new PeriodicNotes(
config:
| {
dateFormat: string;
dateOptions: DateTimeOptions;
folder: string;
intervalDuration: Duration<true>;
intervalOffset: Duration<true>;
}
| {
dateFormat: string;
dateOptions?: DateTimeOptions;
folder: string;
intervalDuration: DurationLike;
intervalOffset?: DurationLike;
},
): PeriodicNotesParameters
- 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>
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.
Optional
dateOptions?: DateTimeOptionsLuxon 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
Optional
intervalOffset?: DurationLikeOffset 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
- config:
Properties
Readonly
dateFormat
The format used to parse a DateTime from file names. Must work for both parsing and formatting.
Readonly
dateOptions
Luxon options used when parsing DateTimes from file names.
Readonly
folder
The folder containing all of the notes. TODO: Support files organized into different folders.
Readonly
intervalDuration
Readonly
intervalOffset
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.
Intended to handle the popular "Periodic Notes" community plugin. As a consequence, all files in the collection must be placed in the same folder.
See
https://github.com/liamcain/obsidian-periodic-notes