add bookmarks sync

This commit is contained in:
fyears
2024-07-14 17:04:05 +08:00
parent 5c86bc039d
commit 12ed023cd1
10 changed files with 92 additions and 6 deletions
+21
View File
@@ -2325,6 +2325,27 @@ export class RemotelySaveSettingTab extends PluginSettingTab {
});
});
new Setting(advDiv)
.setName(t("settings_bookmarks"))
.setDesc(
t("settings_bookmarks_desc", {
configDir: this.app.vault.configDir,
})
)
.addDropdown((dropdown) => {
dropdown.addOption("disable", t("disable"));
dropdown.addOption("enable", t("enable"));
dropdown
.setValue(
`${this.plugin.settings.syncBookmarks ? "enable" : "disable"}`
)
.onChange(async (val) => {
this.plugin.settings.syncBookmarks = val === "enable";
await this.plugin.saveSettings();
});
});
new Setting(advDiv)
.setName(t("settings_deletetowhere"))
.setDesc(t("settings_deletetowhere_desc"))