Skip to content

Releases

0.2.2

Choose a tag to compare

@github-actions github-actions released this 13 Oct 17:41
55cad2d

清理 Obsidian 社区 Scorecard 的审核发现(#65),README 改为上手指南。

  • main.js 不再依赖安装方式:bundle 中的模块路径标记去掉 pnpm store 路径,唯一打包的依赖 antlr4ng 锁定精确版本。CI 构建产物与本地构建逐字节一致,并带 GitHub 构建来源证明。
  • 修复 lint 审核项:抛出 Error 对象、去掉多余类型断言、生成的 ANTLR parser 去掉未使用代码和无说明的 eslint-disable。
  • 「Beancount outline」「Beancount problems」侧栏标题改为 sentence case。
  • README 新增快速上手、账本组织方式、排错、隐私与权限说明和截图;新增 CONTRIBUTING.md。

0.2.1

Choose a tag to compare

@github-actions github-actions released this 12 Oct 17:33
1c250d4

大账本性能优化,行为不变(#62,#63)。16.6k 行账本上:

  • 解析 277 → 6 ms;Format ledger 312 → 13 ms(fenced 笔记 297 → 16 ms);打开余额视图(三文件 include 链)274 → 12 ms。
  • 每次保存(以及启动时每个文件)重建索引 882 → 12 ms。
  • 每次按键的内联提示 / flag 警告 / include 链接:账本 12 → 3 ms,fenced 笔记 20 → 3 ms;滚动 10 → 0.3 ms;. 与回车约 1 ms。
  • 解析器改用手写词法器 + 递归下降解析器,任何错误回退 ANTLR 路径,报错信息不变。

完整说明见 CHANGELOG。

0.2.0

Choose a tag to compare

@github-actions github-actions released this 10 Oct 23:41
43c073d

Transaction folding, ledger formatting, and an account balances view, built
on the bundled @repo/beancount-parser.

Added

  • Format ledger command: normalizes posting and metadata indents, collapses
    header whitespace (leaving strings and ; comments intact), strips trailing
    whitespace, and aligns decimal points. A .bean / .beancount file is one
    ledger; any other note formats each beancount / bean fence. A syntax
    error names the document line and changes nothing.
  • Transactions fold to their header line in ledger files and fences
    (including fences indented under list items). Each entry is parsed on its
    own, so an entry with a syntax error loses only its own fold; an entry
    over 300 lines gets no fold.
  • Show account balances: a sidebar table of per-account unit balances
    (one line per currency), following the entry ledger's include chain or
    the active ledger / note fences. Missing amounts are interpolated from
    posting weights and quantized like beancount; pad / balance insert the
    start-of-day difference when it exceeds tolerance. A parse or interpolation
    error replaces the numbers.

Changed

  • The bundle targets ES2022 with esbuild 0.25, so the bundled Beancount
    parser runs about 6x faster than with ES2018 output.
  • include "**/…" globs match zero or more directories, as beancount's
    recursive glob does (Mod-click and the balance view).

Fixed

  • Decimal alignment skips a line that continues an open string, so a
    posting-shaped line inside a string is left alone — on Align decimal
    points and save-time alignment too.

0.1.1

Choose a tag to compare

@github-actions github-actions released this 10 Oct 14:31
0bd751d

Clears the community directory's automated review findings.

Changed

  • Settings are declared through getSettingDefinitions() on Obsidian 1.13+,
    so they show up in settings search; older versions render the same table
    imperatively.
  • Diagnostic underlines are a gradient zigzag instead of
    text-decoration: wavy.
  • Mod-click on include paths reads the OS from Obsidian's Platform.
  • DOM is built with Obsidian's createEl helpers; timers and globals go
    through window for popout windows.
  • Root pnpm build runs the workspace build directly instead of through
    Turborepo, so a clean pnpm install && pnpm run build succeeds.
  • Release assets carry GitHub build provenance attestations.

0.1.0

Choose a tag to compare

@github-actions github-actions released this 10 Oct 11:12
479bf65

First community plugin release (beancount).

Added

  • Syntax highlighting for beancount / bean fenced code blocks
    (CodeMirror stream mode from beancount.tmLanguage).
  • Account completion and hover from vault open / close directives
    (CJK account segments; closed accounts omitted from completion).
  • Completion ranking: prefix matches first, then subsequence fuzzy match;
    pick count and recency (completionUsage in data.json) float frequent
    accounts/payees to the top. A corrupt usage bag does not block startup.
  • Payee completion from historical transaction payees.
  • Directive snippets (vscode-beancount prefixes plus txn): type a prefix at
    column 0 to expand; txn → YYYY-MM-DD * "" "" with the caret in the payee
    field. Tab walks $n stops; dates resolve to today.
  • Posting auto-indent on Enter inside a beancount entry.
  • Align decimal points command; optional alignOnSave; instant
    alignment when typing . (instantAlignment, separatorColumn).
  • Insert today's date (YYYY-MM-DD).
  • Save-time bean-check diagnostics (inline + gutter) for .bean /
    .beancount files and markdown fences. Settings: beanCheckPath,
    entryLedger. Requires pip install beancount.
  • Show outline sidebar (* sections, date groups, transactions,
    open / close / balance).
  • Balance assertion inlay hints (single-commodity delta at the end of
    balance lines; hidden when an entry ledger is set). Setting:
    inlayHints.
  • Commodity completion: typing a partial commodity after an amount
    (10.00 U) or after the price / commodity keyword suggests
    commodities found in those positions across the vault.
  • Tag completion (#) and link completion (^) inside ledger text —
    .bean / .beancount files and beancount fences.
  • Narration completion: typing the second quoted field of a transaction
    suggests vault narrations and closes the field on pick. Off by default
    (completeNarration). Payee completion can be turned off (completePayee).
  • Transaction flag markers (flagWarnings): ! is a warning by default, *
    is unmarked, so mixed incomplete/cleared ledgers get distinct underline
    styles. Settings tab groups Alignment / Validation / Completion / Fava /
    Flag warnings. Start Fava / Stop Fava (favaPath, favaPort, runFavaOnActivate).
  • Whole-file beancount presentation for .bean / .beancount files
    (beancount-mode colors, monospace, markdown styling reset) and a separator
    ruler (showRuler).
  • Inferred-amount hint on the posting that omits its amount and ≠ 0
    warning on transactions that do not balance within beancount's default
    tolerance (pure JS; cost/price/arithmetic skipped).
  • Pinyin initials matching for completion (pinyinMatching, off by default).
  • Payee pick autofills the postings of that payee's latest transaction
    (payeeAutofill).
  • Validation when a ledger file or fenced note is opened, and a Show
    problems
    sidebar listing the latest bean-check report across files.
  • Mod-click on include "…" paths opens the included file.

Fixed

  • In-flight bean-check results are discarded when the plugin unloads, so a
    late report cannot mark the editor or raise a Notice.
  • Account completion and hover read markdown notes' beancount / bean
    fences only, so colon-joined prose (PG_DATA_DIR:-supabase-db-data,
    LangGraph长期记忆SDK:Semantic) no longer shows up as an account.
  • .bean / .beancount editors use the monospace font, so space-padded
    amounts line up even when the text font is proportional.
  • Account hover card has padding.