feat: persistent recent files history + fix limit enforcement + fix settings data loss
- Recent files are now persisted to disk and survive restarts - Max items limit is applied on load (in case setting was reduced) - Omitted paths regex filtering is now wired up in addToRecentFiles - Fixed saveAndRefresh() overwriting entire plugin data on settings change - Debounced disk writes (300ms) to avoid excessive saves on rapid opens
This commit is contained in:
1 parent
993017f669
commit
49c8da9863
7 files changed
+49
-11
No files matched your search
+1
-1
@@ -294,7 +294,7 @@ export class WaypointSettingTab extends PluginSettingTab {
|
||||
}
|
||||
|
||||
private async saveAndRefresh(): Promise<void> {
|
||||
await this.plugin.saveData(this.settings);
|
||||
await (this.plugin as any).saveSettings();
|
||||
this.onSettingsChange();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user