Skip to content

Commit

Permalink
Remove shouldUpdateLinks
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaoumov committed Dec 27, 2024
1 parent b8988ee commit 1f73df3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/obsidian/RenameDeleteHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -262,7 +257,6 @@ function getSettings(app: App): Partial<RenameDeleteHandlerSettings> {
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;
}
Expand Down

0 comments on commit 1f73df3

Please sign in to comment.