From 1f73df3b5be0061bec2d1e467ec34df1571f4abc Mon Sep 17 00:00:00 2001 From: Michael Naumov Date: Fri, 27 Dec 2024 10:55:35 -0600 Subject: [PATCH] Remove shouldUpdateLinks --- src/obsidian/RenameDeleteHandler.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/obsidian/RenameDeleteHandler.ts b/src/obsidian/RenameDeleteHandler.ts index 0a56128..1f27cee 100644 --- a/src/obsidian/RenameDeleteHandler.ts +++ b/src/obsidian/RenameDeleteHandler.ts @@ -116,11 +116,6 @@ export interface RenameDeleteHandlerSettings { * Whether to update filename aliases when a note is renamed. */ shouldUpdateFilenameAliases: boolean; - - /** - * Whether to update links when a note or attachment is renamed. - */ - shouldUpdateLinks: boolean; } interface InterruptedRename { @@ -262,7 +257,6 @@ function getSettings(app: App): Partial { settings.shouldRenameAttachmentFiles ||= newSettings.shouldRenameAttachmentFiles ?? false; settings.shouldRenameAttachmentFolder ||= newSettings.shouldRenameAttachmentFolder ?? false; settings.shouldUpdateFilenameAliases ||= newSettings.shouldUpdateFilenameAliases ?? false; - settings.shouldUpdateLinks ||= newSettings.shouldUpdateLinks ?? false; const isPathIgnored = settings.isPathIgnored; settings.isPathIgnored = (path: string): boolean => isPathIgnored?.(path) ?? newSettings.isPathIgnored?.(path) ?? false; }