Fileclass Meta Bind

by humoumou
5
4
3
2
1
Score: 50/100

Description

Render Fileclass fields as Meta Bind controls in Obsidian.

Reviews

No reviews yet.

Stats

1
stars
504
downloads
0
forks
41
days
41
days
41
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
3
commits

Latest Version

a month ago

Changelog

Changelog

0.1.7

  • Replace display: contents with a regular flex layout for better compatibility with Obsidian's embedded browser.

0.1.6

  • Clarify installation and usage for the Fileclass and Meta Bind integrations.
  • Publish release assets from a workflow with GitHub artifact attestations.

0.1.5

  • Refine the multi-select prompt to follow Obsidian's native suggestion UI.

README file from

Github

Fileclass Meta Bind v0.1.6

本版只重做 Multi 候选框的 UI,交互规则保持 v0.1.4:

  • 点击未选项 → 选中
  • 点击已选项 → 取消
  • 连续点击不会关闭
  • Esc 退出
  • 点击外部退出

Usage / 使用

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.

UI 改造

不再自己设计一套列表样式。

现在直接复用 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
  • hover / 键盘当前项跟 Obsidian
  • 暗色/亮色主题自动跟随
  • 第三方 Theme 对原生 Suggest UI 的定制也更容易自然继承

选中项只在右侧显示 Obsidian 原生 check 图标,不再显示“已选 / 未选”文字。

键盘操作

↑ / ↓   移动当前高亮项
Enter   切换选中/取消,不关闭弹窗
Esc     关闭

鼠标点击也只是切换,不关闭。

搜索

搜索结果中的命中文字使用 Obsidian 的:

suggestion-highlight

样式显示。

Installation / 安装

覆盖:

<Vault>/.obsidian/plugins/fileclass-meta-bind/
├── manifest.json
├── main.js
└── styles.css

Reload plugins 后确认版本:

0.1.6

Privacy and license

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.