Beancount - Getting started - Episode 2
In this Video I will explain how to get started with Beancount, which is a plaintext accounting tool for tracking your personal finances. 0:00 - Intro 0:24 - Install beancount 0:47 - Recommended editor plugins, Neovim example 1:17 - Create a git repo 1:36 - Configure beancount, declare currencies 2:46 - Specify your checking account 5:16 - Track your income 5:41 - Pay rent 6:49 - Writing snippets 8:10 - Commit your transactions (git) 8:16 - Autocommit when closing Neovim 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 }) ```
Download
0 formatsNo download links available.