CardKit

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

Description

CardKit 卡片工具箱 - Obsidian Canvas 卡片文字管理插件:冒号悬挂对齐 | Obsidian Canvas card text toolbar: colon hanging align

Reviews

No reviews yet.

Stats

0
stars
1
downloads
0
forks
75
days
75
days
75
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
7
commits

README file from

Github

CardKit 卡片工具箱

为 Obsidian Canvas 卡片提供文字管理按钮的插件。选中卡片后,卡片上方工具栏会出现插件注入的按钮,用于整理卡片里的文字。

CardKit adds text management buttons to the Canvas card toolbar. Select a card and use the injected buttons to tidy up the text inside.

当前为早期版本,功能会逐步增加。Early stage, more card text tools are planned.

功能 / Features

冒号悬挂对齐 / Colon hanging align

开启后,卡片里冒号(中文 : 或英文 :)后的长文字在卡片内自动换行时,续行会自动缩进到冒号右侧,而不是顶到卡片最左边,让冒号前的标签更突出:

开启前              开启后
效果:一段或很长的    效果:一段或很长的
说明文字顶到最左           说明文字缩进到
边                   冒号右侧
  • 纯显示层变换,不修改卡片文字内容
  • 按卡片记忆开关状态,编辑、重启后保持
  • 支持多选卡片批量开/关,已开启的卡片按钮高亮
  • 兼容标题、列表;代码块不受影响

Once enabled, wrapped continuation lines of text after a colon stay aligned to the right of the colon. Display-only (your text is never modified), remembered per card, works with headings and lists.

使用 / Usage

  1. 打开一个 Canvas 白板,选中一个或多个文字卡片
  2. 点击卡片上方工具栏的「冒号悬挂对齐(换行缩进)」按钮切换开关
  3. 再次点击同一按钮即可关闭并还原

安装 / Installation

从 Release 手动安装

  1. 到 Releases 下载 main.js、manifest.json、styles.css 三个文件
  2. 在你的库里新建文件夹 .obsidian/plugins/card-kit/,把三个文件放进去
  3. 重启 Obsidian,在 设置 → 第三方插件 中启用 CardKit

通过 BRAT 安装

  1. 安装并启用 BRAT
  2. 运行命令 BRAT: Add a beta plugin for testing,输入 power-ioi/card-kit

隐私说明 / Privacy

  • 插件完全本地运行,不发起任何网络请求
  • 不收集任何数据;唯一的持久化数据是"哪些卡片开启了悬挂对齐"的节点 ID 列表,保存在插件数据文件里

CardKit runs fully offline. No network requests, no telemetry. The only persisted data is the list of card node IDs with hanging align enabled, stored locally in the plugin data file.

许可证 / License

MIT