addtrans
: add transactions fastThis program helps you enter new transactions as fast as possible. With as little as two or three keystrokes (one for autocompletion, zero or one for date change, and one for confirmation), you can have a correct transaction entered into your ledger.
This is how addtrans
assists you:
We'll quickly show you how you can take advantage of addtrans
in a few screenshots and words.
addtrans
: a quick tutorialAfter you install the program onto your system, you can simply run the Add transaction program under your desktop's program menu.
The program will appear like this:
At this point you are ready to begin typing the payee or the description of a transaction. As you type, a dropdown with all matching transactions will appear, and the closest match will be used as a model for the transaction you are about to enter. You can ignore the dropdown and continue typing, or simply select one from the dropdown and then hit Enter.
Note how the preview field below shows you the transaction as it will be entered at the end of your ledger. This lets you have 100% confidence that what you see is what you will get.
This is how the process looks like (minus the dropdown, as my desktop environment does not let me capture transient windows here):
Don't worry too much about this. It's pretty intuitive. Anything that matches a previous transaction gets automatically entered as the transaction you are about to enter. As long as you have not yet altered the account and amount entries below, this autocomplete will replace the entire transaction as you edit it.
At this point, you might want to set the right dates (main and / or auxiliary) on the transaction you are entering. Suppose you want to backtrack three days from today. There are a number of ways to do so:
We'll choose option 3 for speed. After the main date has gone back 3 days, note that the keyboard focus remains on the Payee field. This is excellent — you invested very little effort, and you already have an almost fully finished transaction, with very few changes that need to be made.
Now you are ready to finish the rest of the transaction. Again, simple. Tab your way out of the Payee field and into the first amount, then enter the amount and the first account on the line below:
Note that you can specify any currencies there, but you don't have to. If you do not, addtrans
will recall the last currency you used for the corresponding account, then use that currency. What this means is that, in practice, 99% of the transactions you enter will never require you to type any currency.
Tab yourself out of the amount field, and enter an account. We'll change the asset account to a different one:
Note that autocomplete works for us here. Either enter your full account, or select the account from the autocomplete suggestions. Remember that you can use either the mouse or the arrow keys and Enter to choose an option.
Follow the same process for the rest of the records of the transaction, then hit Add to record the entire transaction on your ledger. Note that you can also hit Enter at any point and, if the transaction is valid, it will be recorded.
After recording a transaction, addtrans
will leave you ready to enter further transactions:
Things to note:
addtrans
is good with you.xxx CUR1 @ yyy CUR2
) works as you would expect of any ledger entry.addtrans
will note any validation errors on its status line next to the action buttons at the bottom. Note that there is a limitation in ledger (a bug that has been fixed, but whose fix has not been released) that prevents addtrans
from telling you exactly what's wrong with the transaction, but we're confident at this time that the bug fix will be released soon. In the meantime, use the transaction preview as a guide to understand what might be wrong.Thus, we come to the end of the quick tutorial.
addtrans
really fastaddtrans
starts really quickly, and it's very convenient to come back to your laptop or workstation after an expense to enter it right away. So we recommend you add a global keyboard shortcut on your desktop environment, such that addtrans
can be started with a single key.
Instructions vary from environment to environment:
kmenuedit
program:Key combos: