Initial commit: Waypoint Obsidian plugin with calendar, recent files, and bookmarks
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
// ── Waypoint Settings ──
|
||||
|
||||
export interface PeriodNoteSettings {
|
||||
folder: string;
|
||||
templateFile: string;
|
||||
nameFormat: string;
|
||||
typeProperty: string;
|
||||
}
|
||||
|
||||
export interface CalendarSettings {
|
||||
firstDayOfWeek: number; // 0=Sunday, 1=Monday
|
||||
showNoteIndicators: boolean;
|
||||
}
|
||||
|
||||
export interface RecentFilesSettings {
|
||||
maxItems: number;
|
||||
updateOn: 'file-open' | 'file-edit';
|
||||
omittedPaths: string[];
|
||||
omittedTags: string[];
|
||||
}
|
||||
|
||||
export interface WaypointSettings {
|
||||
calendar: CalendarSettings;
|
||||
daily: PeriodNoteSettings;
|
||||
weekly: PeriodNoteSettings;
|
||||
monthly: PeriodNoteSettings;
|
||||
quarterly: PeriodNoteSettings;
|
||||
yearly: PeriodNoteSettings;
|
||||
recentFiles: RecentFilesSettings;
|
||||
}
|
||||
|
||||
export const DEFAULT_SETTINGS: WaypointSettings = {
|
||||
calendar: {
|
||||
firstDayOfWeek: 1, // Monday
|
||||
showNoteIndicators: true,
|
||||
},
|
||||
daily: {
|
||||
folder: 'periodic/daily',
|
||||
templateFile: 'Templates/Daily note',
|
||||
nameFormat: 'YYYY-MM-DD',
|
||||
typeProperty: 'daily-note',
|
||||
},
|
||||
weekly: {
|
||||
folder: 'periodic/weekly',
|
||||
templateFile: 'Templates/Weekly note',
|
||||
nameFormat: 'GGGG-[W]WW',
|
||||
typeProperty: 'weekly-note',
|
||||
},
|
||||
monthly: {
|
||||
folder: 'periodic/monthly',
|
||||
templateFile: 'Templates/Monthly note',
|
||||
nameFormat: 'YYYY-MM',
|
||||
typeProperty: 'monthly-note',
|
||||
},
|
||||
quarterly: {
|
||||
folder: 'periodic/quarterly',
|
||||
templateFile: 'Templates/Quarterly note',
|
||||
nameFormat: 'YYYY-[Q]Q',
|
||||
typeProperty: 'quarterly-note',
|
||||
},
|
||||
yearly: {
|
||||
folder: 'periodic/yearly',
|
||||
templateFile: 'Templates/Yearly note',
|
||||
nameFormat: 'YYYY',
|
||||
typeProperty: 'yearly-note',
|
||||
},
|
||||
recentFiles: {
|
||||
maxItems: 50,
|
||||
updateOn: 'file-open',
|
||||
omittedPaths: [],
|
||||
omittedTags: [],
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user