Alfred workflow to modify beancount file with account/payee auto-complete. Thanks to beancount and iconmonstr. Please remember to update Alfred environment variables and modify the corresponding regex in beancount.json
to match your entry format if necessary.
Download the workflow from latest release. You will need to change ledger_path
in workflow environment variables. The regexes in beancount.json
will catch histrorical transactions correctly most time. However, if anything went wrong, modify them to match your file may solve the problem. Output of bean-add
function is defined by title_format
and body_format
, if you want different format, that's where you should refer to.
The python executable path is defined in the python_path
variable. You will also need to install the dependencies described in requirements.txt
with the following command:
pip install -r requirements.txt
bean-add FROM_ACCOUNT TO_ACCOUNT '[PAYEE]' AMOUNT '[TAGS]' '[COMMENT]'
Workflow will list all the possible outcomes for the last parameter, while using the best fit for the rest. For example, if user input is bean-add Slate RES
, the best match for FROM_ACCOUNT
is Liabilities:US:Chase:Slate
, so the program will use that account as transaction source. Meanwhile, all the possible matches for RES
will be listed out.
bean-cache [PATH_TO_BEANCOUNT_FILE]
bean-clear [FROM_ACCOUNT]