Repository navigation
Releases
Releases · thomaszdxsn/obsidian-beancount
0.2.2
清理 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
大账本性能优化,行为不变(#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
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/.beancountfile is one
ledger; any other note formats eachbeancount /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'sincludechain or
the active ledger / note fences. Missing amounts are interpolated from
posting weights and quantized like beancount;pad/balanceinsert 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
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
includepaths reads the OS from Obsidian'sPlatform. - DOM is built with Obsidian's
createElhelpers; timers and globals go
throughwindowfor popout windows. - Root
pnpm buildruns the workspace build directly instead of through
Turborepo, so a cleanpnpm install && pnpm run buildsucceeds. - Release assets carry GitHub build provenance attestations.
0.1.0
First community plugin release (beancount).
Added
- Syntax highlighting for
beancount/beanfenced code blocks
(CodeMirror stream mode frombeancount.tmLanguage). - Account completion and hover from vault
open/closedirectives
(CJK account segments; closed accounts omitted from completion). - Completion ranking: prefix matches first, then subsequence fuzzy match;
pick count and recency (completionUsageindata.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$nstops; 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-checkdiagnostics (inline + gutter) for.bean/
.beancountfiles and markdown fences. Settings:beanCheckPath,
entryLedger. Requirespip install beancount. - Show outline sidebar (
*sections, date groups, transactions,
open/close/balance). - Balance assertion inlay hints (single-commodity delta at the end of
balancelines; hidden when an entry ledger is set). Setting:
inlayHints. - Commodity completion: typing a partial commodity after an amount
(10.00 U) or after theprice/commoditykeyword suggests
commodities found in those positions across the vault. - Tag completion (
#) and link completion (^) inside ledger text —
.bean/.beancountfiles 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/.beancountfiles
(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 latestbean-checkreport across files. - Mod-click on
include "…"paths opens the included file.
Fixed
- In-flight
bean-checkresults 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/.beancounteditors use the monospace font, so space-padded
amounts line up even when the text font is proportional.- Account hover card has padding.