技能 编程开发 Obsidian 核心 UI 流程

Obsidian 核心 UI 流程

v20260311
obsidian-core-workflow-b
定义 Obsidian 的次级工作流,帮助构建模态窗口、模糊提示、定制视图、编辑器扩展与上下文菜单等自定义界面元素。
获取技能
121 次下载
概览

Obsidian Core Workflow B: UI Components

Overview

Secondary workflow for Obsidian: building modals, views, suggestion popups, and custom UI elements.

Prerequisites

  • Completed obsidian-install-auth setup
  • Familiarity with obsidian-core-workflow-a
  • Understanding of DOM manipulation

Instructions

Step 1: Modal Dialogs

Step 2: Suggestion Popups (FuzzySuggestModal)

Step 3: Custom Views (Leaf Views)

Step 4: Editor Extensions (CodeMirror 6)

Step 5: Context Menus

For full implementation details and code examples, load: references/implementation-guide.md

Output

  • Modal dialogs for user input
  • Suggestion popups with fuzzy search
  • Custom sidebar views
  • Editor decorations
  • Context menus

Error Handling

Error Cause Solution
View not showing Not registered Call registerView in onload
Modal closes immediately Event propagation Stop event propagation
Decorations not updating Missing update handler Implement update method
Menu item missing Wrong event Verify event type

Resources

Next Steps

For common errors, see obsidian-common-errors.

Examples

Basic usage: Apply obsidian core workflow b to a standard project setup with default configuration options.

Advanced scenario: Customize obsidian core workflow b for production environments with multiple constraints and team-specific requirements.

信息
Category 编程开发
Name obsidian-core-workflow-b
版本 v20260311
大小 4.03KB
更新时间 2026-03-12
语言