diff --git a/src/settings.ts b/src/settings.ts index b888ad4..eec157d 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -1288,7 +1288,7 @@ export class RemotelySaveSettingTab extends PluginSettingTab { new Setting(syncConfigDirDiv) .setName("sync config dir (experimental)") .setDesc( - `Sync config dir ${this.app.vault.configDir} or not. Please be aware that this may impact all your plugins' or Obsidian's settings, and may require you restart Obsidian after sync. Enable this at your own risk.` + `Sync config dir ${this.app.vault.configDir} or not (inner folder .git and node_modules would be ignored). Please be aware that this may impact all your plugins' or Obsidian's settings, and may require you restart Obsidian after sync. Enable this at your own risk.` ) .addDropdown((dropdown) => { dropdown.addOption("disable", "disable"); diff --git a/src/sync.ts b/src/sync.ts index 0890758..5b50530 100644 --- a/src/sync.ts +++ b/src/sync.ts @@ -984,7 +984,8 @@ const splitThreeSteps = (syncPlan: SyncPlanType, sortedKeys: string[]) => { } } - // the deletionOps should be run from shadowest to deepest + // the deletionOps should be run from max level to min level + // right now it is sorted by level from min to max (NOT length of key!) // so we need to reverse it! deletionOps.reverse(); // inplace reverse