Skip to content

alfred workflow to modify beancount file with account/payee auto-complete

License

Notifications You must be signed in to change notification settings

blaulan/alfred-beancount

Repository files navigation

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.

Instruction for 1st Run

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

Append a new entry to existing beancount file

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-add

Rebuild account and payee caches

bean-cache [PATH_TO_BEANCOUNT_FILE]

Clear an transaction from pendding status

bean-clear [FROM_ACCOUNT]

bean-clear

About

alfred workflow to modify beancount file with account/payee auto-complete

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages