Skip to main content

settings

星标14
分支0
更新时间2026年5月27日 15:39

Author or migrate community-plugin setting tabs (PluginSettingTab) in Obsidian. Covers the declarative getSettingDefinitions() API introduced in 1.13.0 and the recommended pattern for supporting older app versions alongside it. Use when working on a class that extends PluginSettingTab, when migrating an imperative display() override, when adding a new settings page, or when adopting new control types (file, folder, textarea, number, validate, nested pages), conditional visibility/disabled predicates, mutable lists with addItem, render cleanup, SettingPage#hide, or reacting to external state changes from a settings tab. Triggers include "migrate plugin settings", "PluginSettingTab", "getSettingDefinitions", "support old Obsidian versions for settings", "settings validation", "settings page navigation", "conditional settings", "show setting based on", "disable setting when", "refreshDomState", "SettingPage hide", "settings cleanup", "react to vault changes in settings", "mutable list of settings", "addItem".

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

文件资源管理器
6 个文件
SKILL.md
readonly