fava icon indicating copy to clipboard operation
fava copied to clipboard

Faster transaction inserting: Automatically append the first default currency

Open pmarciniak opened this issue 4 years ago • 4 comments

For folks like me, who use the manual transaction inserting tool a lot, it would be a great time saver if one didn't have to explicitly enter the default currency on each posting.

Currently, when I simply enter "2+3" in the Amount box, I'll get "5" in my beancount file. While this is valid beancount syntax, it's not very elegant. Ideally, I'd like my Amount entry to be automatically converted to "5.00 USD" where USD is the first of my operating currencies.

pmarciniak avatar Aug 29 '20 16:08 pmarciniak

Even better idea: if the account in question only has a single currency, populate the currency based on the account. That way currencies can be auto-populated not only for account in the main currency, but also for "foreign" currency accounts.

pmarciniak avatar Aug 29 '20 16:08 pmarciniak

There's already the autocomplete which suggests your most common currency, so I don't think this is needed.

yagebu avatar Oct 02 '20 15:10 yagebu

For me, autocompletion only suggests currencies, so I have to press at least two more keys to add the currency. This proposal would need no additional key presses (besides the amount).

Can I set autocompletion to actually type the currency for me, without additional work?

fdw avatar Jan 09 '21 08:01 fdw

Yes, maybe this could be quickened by more aggressively autocompleting the currency. Using the selectFirst prop for the Autocomplete Svelte component could do the trick.

yagebu avatar Feb 15 '21 16:02 yagebu