Beancount Plugin For Graptos

11 views
Skip to first unread message

Logic-gate

unread,
12:26 AM (11 hours ago) 12:26 AM
to Beancount
I originally posted this on Github discussions(https://github.com/beancount/beancount/discussions/1041). However, I thought it best to post it here since I am interested in more feedback. 

I am currently developing a beancount plugin for Graptos. I have the basics set and would like to see if there are any other features users would like.

The plugin currently provides:
  • Beancount completions(Accounts, Payees, Narrations, Tags, Links, Common BC directives.)
  • Ledger validation through bean-check.
  • Ledger queries through bean-query.
  • Ledger formatting through bean-format.
  • Active-line context through bean-doctor context.
  • Include-aware account and completion indexing.
  • Account balance hover(When hovering over an account, a popover will show the balance summary)

For the balance hover, the function is a basic sum of postings. This is independent of bean-query and bean-check. It scans the live editor buffer and included ledger files, finds posting lines for the hovered account and its child accounts, then groups the amounts by commodity. It works on unsaved text, but it is a simple local summary. It does not apply full Beancount accounting rules like prices, costs, conversions, plugins, or inferred balances.

For example:
Assets:Bank:Checking
Assets:Bank:Checking:*

and balances are grouped by commodity.
Assets:Bank:Checking
1200.00 USD
 0.05 BTC
 Includes: 2 files

Another nice feature in Graptos is that it uses independent syntax highlighting per language via manifests. It does support LSP, and in fact it gives LSP priority over the local YAML definitions. For example this is the beancount syntax. Users can define specific completions, scope specific color schemes , define closed pairs...etc.

I am still working on it and it's not yet available in the repo as I am still testing the plugin and will mostly likely push it to the testing branch. I would appreciate any feedback as to what features would be useful or beneficial to users.


Reply all
Reply to author
Forward
0 new messages