Skip to content

Releases

Supertag V2 — v0.4.2

Choose a tag to compare

@yibie yibie released this 29 Oct 23:56

Tag completion shows a parent's child Tags: typing a parent Tag's name after # now also lists its children, for example #proj offers project › web and project › web › api. Before, each child matched only its own name, so typing the parent hid it. Picking a child still inserts its own name, #web.

补全标签时会显示父标签的子标签:在 # 后输入父标签名,也会列出它的子标签,例如 #proj 会给出 project › web 和 project › web › api。之前子标签只按自己的名字匹配,输入父标签名时会被过滤掉。选中子标签后插入的仍是它自己的名字 #web。

The full list is in CHANGELOG.org. / 完整变更见 CHANGELOG.org。

Supertag V2 — v0.4.1

Choose a tag to compare

@yibie yibie released this 28 Oct 08:32

Node View finds a file node from its header: M-x supertag-view-node with point above the first heading opens the file's own node, named by its :ID: drawer or denote #+IDENTIFIER:. It reported "No node detected at point" for a denote file.

Node View 现在能从文件头打开文件节点:光标在第一个标题之前时,M-x supertag-view-node 会打开这个文件自己的节点(由 :ID: 抽屉或 denote 的 #+IDENTIFIER: 确定)。之前对 denote 文件会提示 "No node detected at point"。

The full list is in CHANGELOG.org. / 完整变更见 CHANGELOG.org。

Supertag V2 — v0.4.0

Choose a tag to compare

@yibie yibie released this 27 Oct 09:46

Supertag V2 — v0.4.0

A tag's Stream can now be arranged by an agent a model writes from one sentence, with its own groups and keys. Find and Discovery read plain words, tag: and KEY:VALUE, and Discovery also finds notes by meaning. Archived notes leave the everyday views, and denote files are nodes by default.

一个标签的 Stream 现在可以交给代理来编排:用一句话让模型写出分组和按键,之后不再调用模型。Find 和 Discovery 支持直接输入词、tag: 和 KEY:VALUE,Discovery 还能按意思找笔记。归档的笔记不再出现在日常视图里,denote 文件默认也算节点。

Highlights / 更新重点

  • Stream agents: M-x supertag-stream-agent-design turns one sentence into an interface for a tag's Stream: groups, a line per note, and keys that write properties, dates or SCHEDULED/DEADLINE. It is generated once and runs without the model. R revises it by another sentence; M-x supertag-stream-agent-manage stops, starts and deletes agents; M-x supertag-stream-agent-open opens an agent's stream from any buffer. Agents can indent notes under their parent and hide bodies.
  • One stream to start from: M-x supertag-view-stream opens the stream of every node. f tag:prj narrows to the prj stream, u goes back.
  • One way to find: in Stream f and in Discovery, type words (title, body, tags, property values), tag:NAME, KEY:VALUE, or a (query. Tag queries include child tags.
  • Discovery by meaning: with semantic search on, Discovery adds notes close in meaning after the keyword matches, each with its score.
  • Archive: notes under an ARCHIVE tag, in your org-archive-location file, or in a denote file with the archive keyword are hidden from Stream, Discovery and Summary. Press A to show them. Links and query blocks still find them.
  • File nodes: a file with an Org :ID: drawer or a denote #+IDENTIFIER: is a node, and can be referenced. Automation and agent keys can write its properties.
  • Models and embeddings: send panel and agent requests through gptel or Superchat (supertag-summary-provider); use any OpenAI-compatible embedding service for similar notes.

Stream 代理:M-x supertag-stream-agent-design 用一句话为某个标签的 Stream 生成界面,包括分组、每条的旁注,以及写属性、日期或 SCHEDULED/DEADLINE 的按键;只生成一次,之后运行不调用模型。按 R 用一句话修改,M-x supertag-stream-agent-manage 停用、启用、删除代理,M-x supertag-stream-agent-open 在任何 buffer 里打开代理的流。代理可以把笔记缩进在上级下面、隐藏正文。M-x supertag-view-stream 打开全部笔记的总流,f tag:prj 收窄到 prj 的流,u 返回。Stream 的 f 和 Discovery 都可以直接输入词、tag:NAME、KEY:VALUE 或以 ( 开头的查询;标签查询包含子标签。打开语义检索后,Discovery 会在关键词结果后补上意思相近的笔记并显示分数。带 ARCHIVE 标签、位于 org-archive-location 文件、或 denote 关键词含 archive 的笔记不再出现在 Stream、Discovery 和 Summary 里,按 A 显示;链接和查询块照常能找到。文件头有 :ID: 抽屉或 denote #+IDENTIFIER: 的文件算作节点,可以被引用,automation 和代理按键也能写它的属性。面板和代理的模型请求可以走 gptel 或 Superchat;相似笔记可以用任何 OpenAI 兼容的向量服务。

Upgrade notes / 升级说明

  • Run M-x supertag-sync-full-rescan once after upgrading. It deletes file nodes whose ID is not in their file header (left by older versions, often shown as duplicates), adds denote and :ID: file nodes, and records which notes are archived.
  • supertag-view-stream no longer asks for a tag. supertag-view-stream-all is an obsolete alias of it.
  • supertag-file-id-source defaults to auto. Set it to org-roam (or supertag) to keep only :ID: file nodes, or disabled for none.
  • (tag "x") now includes tags that extend x, in query blocks and automation conditions too.
  • Archived notes are hidden by default. Set supertag-view-include-archived to t to show them.
  • textui 0.9.0 is required. Restart Emacs after upgrading, and recompile if you byte-compile the package.

升级后请执行一次 M-x supertag-sync-full-rescan:它会删除文件头里找不到 ID 的旧文件节点(旧版本留下的,常表现为重复条目),加入 denote 和 :ID: 文件节点,并记录哪些笔记已归档。supertag-view-stream 不再询问标签,supertag-view-stream-all 成为它的过时别名。supertag-file-id-source 默认改为 auto,设为 org-roam(或 supertag)只认 :ID: 文件节点,设为 disabled 则不认文件节点。(tag "x") 现在包含继承 x 的标签,查询块和 automation 条件也一样。归档笔记默认隐藏,把 supertag-view-include-archived 设为 t 可以显示。需要 textui 0.9.0。升级后请重启 Emacs,字节编译过的请重新编译。

The full list is in CHANGELOG.org. / 完整变更见 CHANGELOG.org。

Supertag V2 — v0.3.1

Choose a tag to compare

@yibie yibie released this 22 Oct 14:15

Supertag V2 — v0.3.1

A Stream can now show any query and narrow into substreams, a node is dated by its CREATED property, and property drawers hint and complete keys and values. Two experimental features arrive: summary panels, and enriching a heading from its sources.

Stream 现在可以展示任意查询,并逐级收窄成子流;节点按 CREATED 属性确定创建时间;属性抽屉里会提示并补全键和值。另有两个实验性功能:摘要面板,以及从来源补充标题内容。

Highlights / 更新重点

  • Streams of any query: supertag-view-stream-all opens the stream of every node and supertag-view-stream-find the stream of any query condition. In a Stream, f narrows to a substream and u goes back. Streams list the newest nodes first and draw the newest 200; m shows twice as many.
  • Creation time from CREATED: the Stream, the created query conditions and the cards date a heading by its CREATED property. Adding a tag to a heading that has none now writes one; set supertag-created-time-format to nil to turn that off.
  • Property hints and completion: with point on a property line the echo area names the key's type and options, and keys and values complete from what the vault already uses. SUPERTAG_ALIASES, where a node's aliases go, is offered before any node uses it, by Org's own C-c C-x p too.
  • Links in property values: a link such as :SEE: [[id:ID][Title]] is now a reference and shows in the target's backlinks. The new query condition (links-to "TYPE:PATH") finds them.
  • Query tables name tags: the Tags column of query blocks and results shows tag names instead of stored IDs.
  • Summary panels (experimental): supertag-summary-design has a model lay out the information panel of a tag from one sentence. The model's code never runs in your session.
  • Enrich a heading (experimental): supertag-enrich-at-point shows the source paragraph each line of a heading came from. Chai and Superchat are optional.
  • Fixes: Link all in unlinked mentions links each occurrence in place even when a save hook edits the file; #tag completion works in org-capture; [[ completion lists existing notes before the offer to create one.

任意查询都能打开成 Stream:supertag-view-stream-all 列出全部节点,supertag-view-stream-find 按任意查询条件列出;在 Stream 里按 f 收窄成子流,按 u 返回。Stream 按新到旧排列,默认只画最新 200 个,按 m 翻倍。Stream、created 查询条件和卡片按标题的 CREATED 属性确定创建时间;给没有 CREATED 的标题加标签时会自动写入。光标在属性行上时回显区会说明键的类型和选项,键和值都能从库里已用的内容补全;节点别名属性 SUPERTAG_ALIASES 即使还没人用过也会出现在候选里,Org 自带的 C-c C-x p 也能补出它。属性值里的链接现在算作引用,会出现在反链里。查询结果的 Tags 列显示标签名而不是内部 ID。新增两个实验性功能:用一句话让模型排版标签的摘要面板,以及显示标题每一行出自来源的哪一段。修复:未链接提及的 Link all 在保存钩子改动文件时仍会链接到正确位置;org-capture 里可以补全 #tag;[[ 补全先列出已有笔记,再给出新建选项。

Upgrade notes / 升级说明

  • Corfu is now a required dependency in Package-Requires.
  • Notes scanned before this release take their CREATED date and their property-value links when their file is next saved. M-x supertag-reindex-org applies both to every file at once.
  • ElDoc is turned on in Org buffers for the property hints. Set supertag-property-hints to nil before Supertag starts to turn the hints off.
  • Restart Emacs after upgrading, and recompile if you byte-compile the package.

Corfu 现在是必需依赖。此前已索引的笔记会在下次保存时读入 CREATED 日期和属性值里的链接,也可以用 M-x supertag-reindex-org 一次处理全部文件。属性提示会在 Org buffer 里打开 ElDoc,在 Supertag 启动前把 supertag-property-hints 设为 nil 可以关闭。升级后请重启 Emacs,字节编译过的请重新编译。

The full list is in CHANGELOG.org. / 完整变更见 CHANGELOG.org。

Supertag V2 — v0.3.0

Choose a tag to compare

@yibie yibie released this 08 Oct 13:53

Supertag V2 — v0.3.0

Indexing a large vault no longer slows down as the vault grows, and background sync no longer holds Emacs while it parses. A heading you delete now leaves the index at once.

大型笔记库的索引不再随规模越来越慢,后台同步解析文件时也不再占住 Emacs。删除的标题现在会立即从索引中消失。

Highlights / 更新重点

  • Background sync parses in a separate process: files are read and parsed by one batch Emacs that stays running, and your session only applies the results in idle moments. Saving a very large file after a small edit pauses Emacs for about as long as the edit is big.
  • First index scales with the vault: several per-file costs grew with the number of files. They are gone, and a first index now costs about the same as a full rescan.
  • Removed headings leave the index at once: nodes are no longer kept for an hour as [orphaned] entries.
  • Moved headings keep their backlinks: a node receives the links other nodes already hold to it when it appears. Before, a heading moved to another file lost them until a full rescan.
  • The database is saved a piece at a time: timer-driven saves write in idle moments and stop while you type.
  • Faster start and Find: loading a large database does less work, sync starts when Emacs is first idle, and supertag-find-node keeps its candidates until a node changes.
  • Promote no longer asks whether it may save after you confirmed the preview.
  • Also includes the AI property extraction change listed in CHANGELOG.org.

后台同步改由一个常驻的独立 Emacs 进程解析文件,当前会话只在空闲时应用结果。首次索引的耗时现在与全量重建相当。删除的标题立即从索引消失,不再保留一小时的 [orphaned] 条目。标题移到另一个文件后反链仍在。数据库在空闲时分片保存。启动、开始同步和 supertag-find-node 都更快。Promote 在预览确认后不再询问是否保存。

Measurements / 实测

Measured with the scripts of org-notes-bench on one machine (M4 Max, macOS, Emacs 32.0.50), one run each. The corpora are generated notes; 100,000 files hold about 145,000 nodes.

v0.2.0 v0.3.0
Full rescan, 10,000 files 34.3 s 6.5 s
First index in the background, 10,000 files 323.8 s 6.7 s
Longest freeze during that first index 2.6 s 76 ms
Full rescan, 100,000 files not measured 64 s
First index in the background, 100,000 files not measured 52 s
Longest freeze during that first index not measured 0.3 s
Save a 10 MB Org file: longest freeze not measured 9 ms
Save a 10 MB Org file: until the new note is findable not measured 0.75 s

On the benchmark author's machine, the first index of 100,000 files with an earlier commit did not finish within 3.5 hours.

Numbers come from one machine and generated notes; yours will differ.

用 org-notes-bench 的脚本在同一台机器上各跑一次。1 万文件:全量重建 34.3 秒降到 6.5 秒,后台首次索引 323.8 秒降到 6.7 秒,期间最长卡顿 2.6 秒降到 76 毫秒。10 万文件:全量重建 64 秒,后台首次索引 52 秒,最长卡顿 0.3 秒。保存 10 MB 文件最长卡顿 9 毫秒,0.75 秒后新笔记可查。v0.2.0 的 10 万文件和大文件保存没有在这台机器上测过。

Upgrade notes / 升级说明

  • One more Emacs process runs while automatic sync is on. It parses files for background sync. Set supertag-sync-parse-in-subprocess to nil to parse in your session as before. It also falls back to your session when you registered an extractor of your own.
  • Removed options: supertag-sync-orphan-grace-seconds is gone with the orphan mechanism. supertag-async-batch-size is replaced by supertag-async-slice-seconds (default 0.05). supertag-sync-auto-start-initial-delay is now idle time and defaults to 0.5.
  • Orphans from an older version are deleted by a full rescan or supertag-sync-cleanup-database.
  • The database file is about 14% larger and loads slightly slower. The format and its reader are unchanged. Set supertag-db-save-slice-seconds to nil to save in one go as before.
  • Restart Emacs after upgrading, and recompile if you byte-compile the package.

升级后自动同步开启时会多一个 Emacs 进程,用 supertag-sync-parse-in-subprocess 设为 nil 可关闭。supertag-sync-orphan-grace-seconds 已删除;supertag-async-batch-size 换成了 supertag-async-slice-seconds;supertag-sync-auto-start-initial-delay 现在是空闲时间,默认 0.5。旧版本留下的孤儿节点由全量重建或 supertag-sync-cleanup-database 清除。数据库文件大约大 14%,格式不变。升级后请重启 Emacs,字节编译过的请重新编译。

Supertag V2 — v0.2.0

Choose a tag to compare

@yibie yibie released this 07 Oct 09:43

Supertag V2 — v0.2.0

Saving a large Org file no longer freezes Emacs. This release also fixes Tag renaming, adds default-value automation, and shows node bodies in Stream.

保存大的 Org 文件不再让 Emacs 卡住。本版本同时修复了 Tag 改名、新增了"默认值"自动化,并让 Stream 显示节点正文。

Highlights / 更新重点

  • Faster saves: after you save, only the headings whose text changed are re-synced, instead of the whole file. Background parsing yields as soon as you type. The local database is written in a simpler native format. Measurements are in the comparison below.
  • Renaming a Tag keeps the Tag: supertag-tag-rename used to drop the Tag's aliases, description and parent, and left child Tags and automation rules pointing at the old Tag. It now keeps the record and updates every reference, rewrites the Tag inside query blocks, and lists everything in the preview before you confirm. Files with unsaved changes are refused instead of being saved for you.
  • Automation defaults: :update-property accepts :if-missing t, which writes the value only when the property is absent or empty. A new template, "Tag added -> set a default property", uses it.
  • Stream View: Tags are shown by name instead of by ID, each node shows the start of its body, and v opens Node View without moving the cursor out of Stream.
  • Also includes the navigation, Discovery and view-command changes listed in CHANGELOG.org.

保存后只重新同步内容有变化的标题;后台解析在你打字时让路;本地数据库改用更简单的格式写盘。Tag 改名现在保留别名、描述、父级,并更新子 Tag、自动化规则和查询块。:update-property 新增 :if-missing。Stream 显示 Tag 名称和节点正文。

The save lag, before and after / 保存卡顿的前后对比

In v0.1.1, saving a large Org file was followed by two freezes: one about a second after the save, while the file was re-synced, and another two seconds later, while the database was written. Emacs is single-threaded, so typing was blocked during both.

Measured in a GUI Emacs with only Supertag loaded (interpreted, not byte-compiled), on a 330,000-character Org file with 1,029 headings and a database of 1,883 nodes, changing a few characters and saving:

Step after a save v0.1.1 v0.2.0
Re-sync the saved file 3,337 ms, of which 2,061 ms garbage collection about 155 ms; about 380 ms for the first save of a file in a session
Write the database 380 ms 48 ms in batch mode (171 ms in the GUI before the format change; not re-measured in the GUI after it)
Typing during the re-sync blocked until it finished parsing stops and resumes when Emacs is idle

What caused it, and what changed:

Cause in v0.1.1 Change in v0.2.0
Changing one line re-parsed every heading in the file Only headings whose own text or ancestor headings changed are parsed
The saved file was parsed twice, the second time to look for deleted nodes Parsed once
Interpreted code rebuilt closures for every heading while scanning inline Tags Named functions; cleaned titles cached for one parse
A single sync triggered about 11 garbage collections, a database write about 12 Collection is deferred and runs once afterwards
The database was sorted into a line-per-entity format and canonicalized again to verify it One printed Store, verified by reading it back and comparing every entity

For reference, the last V1 release (v5.9.0) used the same save flow. In batch mode it parsed this file in about 190 ms and wrote this database in about 45 ms, against about 790 ms and 270 ms for v0.1.1. v0.2.0 is back in that range for the database write and below it for an incremental re-sync (about 65 ms of parsing).

Numbers come from one machine and one vault; yours will differ with file and database size.

v0.1.1 中,保存大文件后会出现两次卡顿:约 1 秒后重新同步该文件,再过 2 秒整库写盘。在 33 万字符、1029 个标题的文件上,重新同步从 3337 ms 降到约 155 ms(每次启动后某文件的第一次保存约 380 ms),写盘从 380 ms 降到 48 ms(批处理测得),同步期间打字不再被挡住。

Upgrade notes / 升级说明

  • The local database format changes on the first save. Existing databases load as before and are rewritten automatically. Earlier Supertag versions cannot read the new file; the daily backup under backups/ keeps a copy in the old format. Git sync is not affected, because the database is not transported.
  • Restart Emacs after upgrading, and recompile if you byte-compile the package.
  • The first save of each file in a session still parses the whole file; later saves are incremental. Set supertag-sync-incremental-parse to nil to turn the incremental path off.
  • Renaming a Tag to one of its own aliases now succeeds and promotes the alias.
  • Query blocks that name a Tag by symbol, multi-line :query values in dynamic blocks, and blocks that cannot be parsed are listed in the rename preview but not rewritten.

首次保存后本地数据库会转成新格式,旧版本无法读取;backups/ 下的每日备份保留了旧格式副本。升级后请重启 Emacs。

Verification / 验证

35 test suites, 1317 tests. One test in the add-link suite fails because its subprocess cannot locate TextUI in the development environment; it fails the same way on the previous release. compile-check.sh passes.

Supertag V2 — v0.1.1

Choose a tag to compare

@yibie yibie released this 03 Oct 01:04

Supertag V2 — v0.1.1

This is the first release of the new Supertag V2 version line. Product
numbering restarts at 0.1.1; historical 5.x/6.x numbers belong to the previous
product line. This is not a code downgrade. Database format/migration versions
are independent and have not been reset.

Supertag V2 从 v0.1.1 重新编号。这是新一代产品的首次发布,并非从 6.0 降级。
数据库格式和迁移版本维持原值,不随产品编号重置。

V2: Org-first notes

Use ordinary Org capture, inline Tags and Org properties. Dedicated fields,
supertag-capture and table workflows are retired; Stream handles browsing while
the local database supports search, discovery and views. Org text remains the
source of truth for note content. This release includes reference completion,
navigation and point-projection performance improvements.

Highlights / 更新重点

  • Portable metadata sync: Git now transports Tag definitions (stable IDs, names, aliases, inheritance) and automation rules in .supertag-metadata.eld, alongside Org files. Metadata-only edits trigger the existing automatic commit workflow.
  • Local data stays local: the complete database, node paths/positions, indexes and runtime sync state are not transported. Cloning imports metadata before rebuilding the local Org projection.
  • Conflict safety: a persisted local baseline preserves concurrent edits and deletions. Competing entity edits, invalid Tag graphs and malformed/unsupported files stop synchronization instead of silently overwriting local work. Git metadata conflicts use the existing save-and-continue workflow.
  • Compilation: formal modules compile without byte/native warnings; experimental Tag Cards and development sources are excluded from package compilation. The invalid Stream window-return test has been retired.
  • Includes the Org-first architecture, reference completion/navigation improvements and projection performance fixes developed since the first 6.0 beta.

现在同步 Org 文件时,也会自动同步 Tag 定义(含别名、继承)和自动化规则;无需为元数据新增配置或手动导出。完整数据库和本机运行状态仍留在本地。发生真实冲突时暂停处理,不静默覆盖。

Upgrade notes / 升级说明

  • Upgrade all participating devices together and keep database backups. Existing users of the current Org-first Git workflow need no additional metadata configuration: normal synchronization creates the snapshot automatically. Enable supertag-git-sync-mode as usual after restarting.
  • Coming from v6.0.0-beta's database merge-driver workflow? This release supersedes that architecture: Git transports Org text and portable metadata, not the complete database. Run supertag-git-setup to review removal of previously tracked local database/backup/attribute files from Git tracking; local files are retained. Consult the current sync guide rather than the first beta's release instructions.
  • First contact with an existing local Store can report a conflict if two Tags share a name but have different IDs. Identities are not silently merged. A new device should preferably start with an empty local Store and use supertag-git-clone.
  • Use trusted repositories only. Import itself does not execute automation actions, but imported enabled rules subsequently run normally. Explicit rule parameters travel as written; custom function implementations and machine-specific configuration do not.
  • Synchronization does not promise conflict-free concurrent edits. Resolve actual conflicts explicitly; local unsynchronized edits are preserved.

Verification / 验证

  • Git suite: 51/51 passing, including 12 portable-metadata tests and real isolated repositories.
  • Related regression suites: 358 tests passing in total (including Git).
  • Release-content-only check: Git suite and static gates pass; 28 formal modules pass byte and native compilation without warnings; 119 experimental/development files are skipped.

Documentation: English sync guide · 中文同步指南