Skip to content

Commit

Permalink
Version 1.1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
johansan committed Feb 5, 2025
1 parent 149f9ee commit 28e2b91
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 16 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "featured-image",
"name": "Featured Image",
"version": "1.1.11",
"version": "1.1.12",
"minAppVersion": "1.4.4",
"description": "Automatically sets a featured image property in your notes based on the first image, YouTube link, or Auto Card Link image found in your document.",
"author": "Johan Sanneblad",
Expand Down
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-featured-image",
"version": "1.1.11",
"version": "1.1.12",
"description": "Automatically sets a featured image property in your notes based on the first image, YouTube link, or Auto Card Link image found in your document.",
"main": "main.js",
"scripts": {
Expand Down
12 changes: 4 additions & 8 deletions src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ export interface FeaturedImageSettings {
// Frontmatter settings
frontmatterProperty: string;
mediaLinkFormat: 'plain' | 'wiki' | 'embed';
useMediaLinks: boolean; // TODO: Remove in the future, it has been replaced by mediaLinkFormat
onlyUpdateExisting: boolean;
keepEmptyProperty: boolean;
useMediaLinks: boolean; // TODO: Remove in the future, it has been replaced by mediaLinkFormat
preserveTemplateImages: boolean;

// YouTube settings
requireExclamationForYouTube: boolean;
Expand All @@ -23,9 +24,6 @@ export interface FeaturedImageSettings {
// Developer options
debugMode: boolean;
dryRun: boolean;

// New setting
preserveTemplateImages: boolean;
}

export const DEFAULT_SETTINGS: FeaturedImageSettings = {
Expand All @@ -35,9 +33,10 @@ export const DEFAULT_SETTINGS: FeaturedImageSettings = {
// Frontmatter settings
frontmatterProperty: 'feature',
mediaLinkFormat: 'plain',
useMediaLinks: false, // TODO: Remove in the future, it has been replaced by mediaLinkFormat
onlyUpdateExisting: false,
keepEmptyProperty: false,
useMediaLinks: false, // TODO: Remove in the future, it has been replaced by mediaLinkFormat
preserveTemplateImages: false,

// YouTube settings
requireExclamationForYouTube: true,
Expand All @@ -50,9 +49,6 @@ export const DEFAULT_SETTINGS: FeaturedImageSettings = {
// Developer options
debugMode: false,
dryRun: false,

// New setting
preserveTemplateImages: true,
}

export class FeaturedImageSettingsTab extends PluginSettingTab {
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@
"1.1.8": "1.4.4",
"1.1.9": "1.4.4",
"1.1.10": "1.4.4",
"1.1.11": "1.4.4"
"1.1.11": "1.4.4",
"1.1.12": "1.4.4"
}

0 comments on commit 28e2b91

Please sign in to comment.