diff --git a/src/Constants.ts b/src/Constants.ts index 2c7f77d..fd10082 100644 --- a/src/Constants.ts +++ b/src/Constants.ts @@ -9,6 +9,7 @@ export const DEFAULT_SETTINGS: GraphAnalysisSettings = { noInfinity: true, noZero: true, allFileExtensions: true, + showImgThumbnails: true, addUnresolved: true, coTags: true, defaultSubtypeType: 'Co-Citations', diff --git a/src/Interfaces.ts b/src/Interfaces.ts index 69f933d..f407012 100644 --- a/src/Interfaces.ts +++ b/src/Interfaces.ts @@ -67,6 +67,7 @@ export interface GraphAnalysisSettings { noInfinity: boolean noZero: boolean allFileExtensions: boolean + showImgThumbnails: boolean addUnresolved: boolean coTags: boolean defaultSubtypeType: Subtype diff --git a/src/Settings.ts b/src/Settings.ts index 50cabd7..b45b06a 100644 --- a/src/Settings.ts +++ b/src/Settings.ts @@ -69,6 +69,18 @@ export class SampleSettingTab extends PluginSettingTab { }) ) + new Setting(containerEl) + .setName('Show Thumbnails for Images') + .setDesc( + 'Whether to show small thumbnails for images (if all file extensions are included).' + ) + .addToggle((toggle) => + toggle.setValue(settings.showImgThumbnails).onChange(async (value) => { + settings.showImgThumbnails = value + await plugin.saveSettings() + }) + ) + new Setting(containerEl) .setName('Include tags (Co-Citations)') .setDesc(