humoumou45 downloadsRender Fileclass fields as Meta Bind controls with FCMB[field], with a native-style persistent multi-select prompt.
本版只重做 Multi 候选框的 UI,交互规则保持 v0.1.4:
After installing Fileclass and Meta Bind, enable this plugin and open a note that uses Fileclass fields. Run Fileclass Meta Bind: Refresh FCMB controls from the command palette when definitions or frontmatter change. Compatible fields are rendered as Meta Bind controls in the editor.
不再自己设计一套列表样式。
现在直接复用 Obsidian 自己的 Prompt / Suggestion DOM class:
prompt-input-container
prompt-input
prompt-results
suggestion
suggestion-item
suggestion-content
suggestion-title
suggestion-aux
suggestion-flair
suggestion-highlight
is-selected
因此:
选中项只在右侧显示 Obsidian 原生 check 图标,不再显示“已选 / 未选”文字。
↑ / ↓ 移动当前高亮项
Enter 切换选中/取消,不关闭弹窗
Esc 关闭
鼠标点击也只是切换,不关闭。
搜索结果中的命中文字使用 Obsidian 的:
suggestion-highlight
样式显示。
覆盖:
<Vault>/.obsidian/plugins/fileclass-meta-bind/
├── manifest.json
├── main.js
└── styles.css
Reload plugins 后确认版本:
0.1.6
Fileclass Meta Bind makes no network requests, uses no telemetry, and accesses vault files through Obsidian's API. It does not bundle Fileclass, Meta Bind, or CodeMirror; those integrations use the APIs exposed by the installed host plugins and Obsidian. It is released under the MIT License.