2022-11-16 01:55:36 +08:00
2022-11-04 23:17:17 +08:00
2022-10-19 11:22:42 +08:00
2022-11-16 01:55:36 +08:00
2022-11-05 00:21:44 +08:00
2022-10-21 14:53:41 +08:00
2022-11-05 00:13:21 +08:00
2022-11-04 23:06:32 +08:00
2022-10-19 11:22:42 +08:00
2022-11-16 01:55:36 +08:00
2022-11-04 23:06:32 +08:00
2022-11-04 23:06:32 +08:00
2022-11-16 01:55:36 +08:00
2022-11-16 01:55:36 +08:00
2022-11-16 01:55:36 +08:00

Ledger Quick Note

screenshot

Add ledger transactions on the fly!

Feature

Create Transaction from Template

Add your transaction template in tx/ (in Go's template syntax), and create transaction from them in the browser.

Examples:

Take some cash

{{ .Date }} * cash
    expenses:cash    ${{ .Amount }}
    assets:cash

Cash expenses

{{ .Date }} {{ with .Name }}{{ . }}{{ else }}{{ .Account }}{{ end }}
    {{ .Account }}      ${{ .Amount }}
    expenses:cash
    

Checkout tx/ folder for more examples.

new action

Adjust your transaction

confirm

Result page

result

Ledger Scripts

Run some commonly used ledger commands.

Define your commands in config.go

var SCRIPTS = map[string][]string{
	"balance assets":     {"b", "assets", "-X", "$"},
	"register":           {"r", "--tail", "10"},
	"balance this month": {"b", "-b", "this month"},
}

Rebuild binary everytime you make a change to config.go

Execute them and see the result in the browser.

execute result

Install

Requirements:

  • go
  • ledger (Only required when you use scripts)

Install requirements on Debian / Ubuntu based distro:

sudo apt install golang ledger

Install requirements on Arch based distro:

sudo pacman -S golang ledger

Clone the repo

git clone https://github.com/lancatlin/ledger-quicknote.git
go build
./ledger-quicknote

Checkout deployment/ for Nginx & Systemd example configuration.

Description
No description provided
Readme 211 KiB
Languages
Go 66.8%
HTML 33.2%