Skip to content

fix(settings): Address Obsidian plugin review warnings - #37

Merged
iuga merged 1 commit into
masterfrom
obsidianLintFixes
Jul 21, 2026
Merged

fix(settings): Address Obsidian plugin review warnings#37
iuga merged 1 commit into
masterfrom
obsidianLintFixes

Conversation

@iuga

@iuga iuga commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Motivation
Obsidian's plugin review flagged two warnings that affect compliance and discoverability: direct DOM creation instead of the recommended helper, and settings not appearing in the built-in settings search for users on 1.13.0+.

Description
Applies the two fixes from the review so the plugin follows Obsidian guidelines and its settings become searchable.

Changes

  • Replace activeDocument.createElement("div") with Obsidian's createDiv() helper in message-row.ts (prefer-create-el).
  • Implement getSettingDefinitions() (plus getControlValue/setControlValue) in settings-tab.ts so settings surface in Obsidian's settings search on 1.13.0+. The interactive display() UI is unchanged.

- Use createDiv() helper instead of activeDocument.createElement to
  follow Obsidian's prefer-create-el guideline.
- Implement getSettingDefinitions() so settings appear in Obsidian's
  settings search for users on 1.13.0 or later.
@iuga
iuga merged commit 7d459df into master Jul 21, 2026
4 checks passed
@iuga
iuga deleted the obsidianLintFixes branch July 21, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant