Total: add lines of a draft

Action directory: https://actions.getdrafts.com/a/1Pu

This action adds up each line of a draft and displays the total. It’s handy for those cases in between “I should use a calculator” and “I should use a spreadsheet”. Some use cases: adding up receipts, keeping track of per diem, splitting a bill.

Numbers can be integers or decimal:


10

3.75

Text, and everything after it, is ignored which is handy for adding notes:


# Twelve Days of Christmas

3 French hens

2 Turtle dovers

1 Partridge in a pear tree

Simple calculations can be done on each line:


5.00 * 2 multiplication

4.25 x 3 quicker than find multiply

100 / 2 division

3 Likes