Skip to content

Hortus 0.5.0

Latest

Choose a tag to compare

@groundgrounder groundgrounder released this 23 Nov 11:33

Hortus 0.5.0

Hortus 0.5.0 completes the core macOS feature surface with full embedded notes, vault-wide folder rename link updates, native Mermaid classDiagram and erDiagram, clickable in-diagram [[wikilinks]], native SVG/PNG/PDF diagram export, an offline read-only MCP server (hortus mcp), and safe Send-to-Terminal shortcuts.

  • Full note & diagram embeds. Embed whole notes (![[Note]]), heading sections (![[Note#Heading]]), aliases (![[Note|Alias]]), and standalone .mmd files (![[diagram.mmd]]) directly inside the reading view as native cards with full Markdown, LaTeX math, images, interactive Mermaid diagrams, cycle detection, and a 3-level nesting guard.
  • Folder rename batch link updates. Renaming a folder previews all affected references across the vault and atomically rewrites note links, embeds, and explicit attachment paths (![[docs/img.png]], [[./docs/a]]) while protecting open unsaved tabs and preserving file metadata.
  • Mermaid classDiagram and erDiagram. Native Rust parsing, adaptive layout, orthogonal routing, and Core Text / Core Graphics rendering for UML class diagrams (three-section cards, generics, stereotypes, visibility, namespace containers, 8 relation types with cardinalities, notes) and ER diagrams (three-column attributes with PK/FK/UK badges, Crow's Foot cardinalities, solid/dashed relations, self-relations).
  • In-diagram [[wikilinks]] & native SVG / PNG / PDF export. Click [[Note]], [[Note#Heading]], or [[Note|Alias]] inside nodes across all 6 diagram types (including embedded cards and Focus Mode), and export any diagram to vector SVG, 2× Retina PNG, or vector PDF from the context menu or Focus Mode top bar.
  • Offline read-only MCP server (hortus mcp) & Send to Terminal. Connect MCP-compatible agents over stdio to 9 read-only vault tools (hortus_search, hortus_backlinks, hortus_links, hortus_tags, hortus_outline, hortus_orphans, hortus_broken_links, hortus_mermaid_check, hortus_guide) plus hortus://guide with zero disk writes. Press ⌃⌘L to send the active note's quoted relative path or ⇧⌃⌘L to send the current reading/editing/embedded selection into the built-in terminal via sanitized bracketed paste without auto-executing Enter.
  • Security & cross-feature hardening. Hardened terminal payload delivery against bracketed-paste escapes and control-byte injection, fixed reading-view SVG export, embedded card style/width/interaction seams, standalone .mmd handling across links/CLI/MCP, classDiagram namespace routing, Focus Mode self-link navigation, CRLF selection line numbers, case-sensitive path identity, and async diagram-state persistence.

Hortus 0.5.0 takes 18.5 MiB on disk, shows a note about 0.4 s after launch, and uses about 145 MiB of memory with the demo diagram open, as one process. Figures are medians of five runs on an Apple M3 MacBook Air with macOS 27.2.1. Requires macOS 27 or later on Apple Silicon. This build is ad-hoc signed, so macOS asks you to approve the first launch; the README has the steps.


Hortus 0.5.0

Hortus 0.5.0 完成 macOS 阶段核心功能封口:新增完整笔记与独立图内嵌、文件夹重命名批量改双链、Mermaid classDiagram 与 erDiagram 原生渲染、图内 [[双链]] 点击跳转、SVG/PNG/PDF 原生导出、离线只读 MCP Server(hortus mcp)与安全发送到内置终端。

  • 完整笔记与独立图内嵌。 阅读视图直接将 ![[笔记]]、![[笔记#章节]]、![[笔记|别名]] 与独立图 ![[diagram.mmd]] 渲染为原生嵌入卡片,完整保留 Markdown、LaTeX 公式、图片与可交互 Mermaid 图表,内置循环检测与 3 层嵌套上限保护。
  • 文件夹重命名批量改双链。 重命名文件夹时自动预览全库受影响引用,原子改写笔记双链、嵌入与显式路径附件引用(如 ![[docs/img.png]]、[[./docs/a]]),同时保护未保存标签页并保留文件元数据。
  • 原生 Mermaid classDiagram 与 erDiagram。 Rust 解析布局与 Core Text / Core Graphics 矢量绘制新增类图(三段式 UML 卡片、泛型、构造型、可见性、namespace 分组、8 类关系与基数、便签)和实体关系图(三列属性与 PK/FK/UK 徽标、完整 Crow's Foot 鸦脚基数、实/虚线关系与自关联)。
  • 图内 [[双链]] 跳转与 SVG / PNG / PDF 原生导出。 6 大图型的节点内 [[笔记]]、[[笔记#章节]]、[[笔记|别名]] 均支持直接点击跳转(含嵌入卡片与专注模式);支持通过右键菜单或专注模式顶栏原生导出矢量 SVG、2× Retina PNG 或矢量 PDF。
  • 离线只读 MCP Server(hortus mcp)与发送到终端。 通过标准 stdio 向任意支持 MCP 的 Agent 暴露 9 个只读工具(hortus_search、hortus_backlinks、hortus_links、hortus_tags、hortus_outline、hortus_orphans、hortus_broken_links、hortus_mermaid_check、hortus_guide)与只读资源 hortus://guide,零写盘、零联网。在应用内按 ⌃⌘L 发送当前笔记引用路径、按 ⇧⌃⌘L 将阅读/编辑/嵌入卡片选区经清洗后的 bracketed paste 安全发送到内置终端,不自动执行回车。
  • 安全与跨功能接缝加固。 加固终端发送防括号粘贴逃逸与控制字节注入,统一独立 .mmd 在知识索引/CLI/MCP 的整文件图语义,修复阅读视图 SVG 导出、嵌入卡片样式/宽度/交互、类图 namespace 路由、专注模式自链定位、CRLF 行号统计、大小写敏感文件系统路径身份与图表状态异步迁移同步。

Hortus 0.5.0 安装占用 18.5 MiB,启动后约 0.4 秒显示笔记,打开演示大图时只有一个进程、内存约 145 MiB。数字均为 Apple M3 MacBook Air、macOS 27.2.1 上五次测量的中位数。需要 macOS 27 或更高版本、Apple 芯片。这个版本使用 ad-hoc 签名,第一次打开时 macOS 会请你确认,步骤见 README。