Beancount - Getting started - Episode 2

4 months ago
21

In this Video I will explain how to get started with Beancount, which is a plaintext accounting tool
for tracking your personal finances.

Neovim plugins mentioned in the video:

* https://github.com/nathangrigg/vim-beancount
* https://github.com/jose-elias-alvarez/null-ls.nvim
* https://github.com/AlxHnr/null-ls-bean-check.nvim
* https://github.com/SirVer/ultisnips

Beancount main file header:

```
plugin "beancount.plugins.check_commodity"
plugin "beancount.plugins.coherent_cost"
plugin "beancount.plugins.nounused"

2024-02-05 commodity EUR
option "operating_currency" "EUR"
option "booking_method" "FIFO"
```

Example snippet (Ultisnips):

```
snippet salary "Expands to a salary payment" b
`date '+%Y-%m-'`${1:01} * "John Doe Software Company"
Assets:Checking 2,500.00 EUR
Income:Salary
endsnippet
```

Neovim lua code for auto-committing the changes in your beancount repository.

```
local augroup = vim.api.nvim_create_augroup('beancount-augroup', {})
vim.api.nvim_create_autocmd('VimLeave', {
pattern = '*', group = augroup,
callback = function()
vim.api.nvim_command('!cd ~/YOUR/BEANCOUNT/DIRECTORY/HERE/ && git commit -am "Autosave"')
end
})

-- Jump to the bottom of beancount files when opening.
vim.api.nvim_create_autocmd('BufWinEnter', {
pattern = { '*.beancount' }, group = augroup,
callback = function() vim.api.nvim_input('Gzz') end
})
```

=== Support this channel ===

* Help the algorithm by subscribing, liking and commenting
* Donate trough Patreon: https://patreon.com/WealthAllocator
* Donate Bitcoin: bc1qh8emwj2y7gq7ecarvkyf4uclt9grhfzg384yje
* Donate Ethereum: 0xEFad3B0A4cF9e75dF46EE86564358bE4324e0E5b

Loading comments...