Skip to content

Releases: power-ioi/card-kit

CardKit v1.1.2

Choose a tag to compare

@github-actions github-actions released this 10 Sep 10:34

Full Changelog: 1.1.1...v1.1.2

CardKit 1.1.1

Choose a tag to compare

@github-actions github-actions released this 10 Sep 01:56

Full Changelog: 1.1.0...1.1.1

CardKit v1.1.0

Choose a tag to compare

@power-ioi power-ioi released this 09 Sep 13:59

CardKit v1.1.0

新功能

编辑态冒号悬挂对齐

冒号悬挂对齐现在在编辑卡片时同样生效。此前仅在非编辑(预览)状态生效,进入编辑后对齐效果会消失。

实现方式:Canvas 文字卡片的编辑器是位于 iframe 内的 CodeMirror 6。由于 CM6 会重置 .cm-line 的 inline style,插件改为向 iframe 注入一个 <style> 标签,用 :nth-child 选择器为每行设置 padding-left + 负 text-indent!important 覆盖 CM6 主题的 padding:0)。输入时通过 MutationObserver 监听编辑器内容变化,实时重生成 CSS 规则,因此边打字边对齐。

  • 预览态、编辑态都支持冒号悬挂对齐
  • 编辑时实时跟随文字变化更新缩进
  • 开关状态按卡片记忆,编辑/重启后保持

安装

  1. 下载 main.jsmanifest.jsonstyles.css
  2. 放入 .obsidian/plugins/card-kit/
  3. 重启 Obsidian 并启用 CardKit

v1.1.0

Colon hanging align now works in edit mode too. The editor is a CodeMirror 6 instance inside an iframe; since CM6 resets inline styles on .cm-line, alignment is applied by injecting a <style> tag with :nth-child rules into the iframe. A MutationObserver regenerates the rules as you type.

CardKit v1.0.2

Choose a tag to compare

@power-ioi power-ioi released this 09 Sep 13:07

CardKit v1.0.2

变更

  • 插件显示名改为 CardKit(社区目录名称校验只接受 ASCII 字母/数字/空格/连字符,中文名"卡片工具箱"无法通过)
  • manifest version 升至 1.0.2,功能无变化

安装

  1. 下载 main.jsmanifest.jsonstyles.css 三个文件
  2. 放入你的库:.obsidian/plugins/card-kit/
  3. 重启 Obsidian,在 设置 → 第三方插件 中启用 CardKit

v1.0.2

Plugin display name changed to CardKit to satisfy the community directory name validation (ASCII only). No functional changes.

CardKit 卡片工具箱 v1.0.1

Choose a tag to compare

@power-ioi power-ioi released this 09 Sep 12:37

CardKit 卡片工具箱 v1.0.1

面向 Obsidian 社区插件提交的准备版本。

变更

  • 样式规范化:<br> 隐藏改为 CSS 类(.mh-br-hidden),符合官方"避免硬编码样式"审查要求
  • 修复工具栏按钮高亮选择器未随插件改名更新的问题
  • 精简 manifest 描述,符合提交要求(≤250 字符、句号结尾)

安装

  1. 下载 main.jsmanifest.jsonstyles.css 三个文件
  2. 放入你的库:.obsidian/plugins/card-kit/
  3. 重启 Obsidian,在 设置 → 第三方插件 中启用 CardKit 卡片工具箱

v1.0.1

Preparation for community plugin submission: CSS-class based <br> hiding (review guidelines), fixed toolbar highlight selector, simplified manifest description.

CardKit 卡片工具箱 v1.0.0

Choose a tag to compare

@power-ioi power-ioi released this 09 Sep 12:26

CardKit 卡片工具箱 首个版本

Obsidian Canvas 卡片文字管理插件:选中卡片后,在卡片上方工具栏注入管理按钮。

功能

  • 冒号悬挂对齐:开启后,卡片里冒号(中/英文)后的长文字自动换行时,续行自动挂在冒号右侧,不再顶到最左边。纯显示层变换,不改动文字内容,按卡片记住开关状态,编辑后自动保持。

安装

  1. 下载 main.jsmanifest.jsonstyles.css 三个文件
  2. 放入你的库:.obsidian/plugins/card-kit/(文件夹需自己新建)
  3. 重启 Obsidian,在 设置 → 第三方插件 中启用 CardKit 卡片工具箱

使用

选中 Canvas 卡片 → 点击卡片上方工具栏的「冒号悬挂对齐(换行缩进)」按钮切换开关;已开启的卡片按钮会高亮。


Initial release of CardKit

Obsidian Canvas card text management toolbar. First feature: colon hanging align — wrapped continuation lines stay right of the colon, per-card toggle, no text modification.