Skip to content

Commit

Permalink
show average amount column
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhantac committed Apr 29, 2024
1 parent bb0d3de commit f2587a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/charmbracelet/bubbles v0.14.0
github.com/charmbracelet/bubbletea v0.22.1
github.com/charmbracelet/lipgloss v0.6.0
github.com/siddhantac/hledger v0.5.1
github.com/siddhantac/hledger v0.7.1
)

require (
Expand Down
6 changes: 2 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJ
github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/sahilm/fuzzy v0.1.0/go.mod h1:VFvziUEIMCrT6A6tw2RFIXPXXmzXbOsSHF0DOI8ZK9Y=
github.com/siddhantac/hledger v0.5.0 h1:CM7u5PtbeOER4UdUcvP2rii8r4mBI+dOFSatCX702wU=
github.com/siddhantac/hledger v0.5.0/go.mod h1:87p4LqIKToEa5YxjVLnJZr/AUZp/Q+ScGSS3Dvx9zAg=
github.com/siddhantac/hledger v0.5.1 h1:nezChdkwE+vIO/F0OTmjha1QA78bfsOA417riz8+GfE=
github.com/siddhantac/hledger v0.5.1/go.mod h1:87p4LqIKToEa5YxjVLnJZr/AUZp/Q+ScGSS3Dvx9zAg=
github.com/siddhantac/hledger v0.7.1 h1:P3jo4vGYa6Ukgwzw9vYimOcteABD7AEDTzrwrPUkDbY=
github.com/siddhantac/hledger v0.7.1/go.mod h1:87p4LqIKToEa5YxjVLnJZr/AUZp/Q+ScGSS3Dvx9zAg=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
Expand Down
1 change: 1 addition & 0 deletions ui/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ func (m *model) refresh() tea.Cmd {
WithStartDate(m.filterGroup.startDate.Value()).
WithEndDate(m.filterGroup.endDate.Value()).
WithAccountDepth(m.accountDepth).
WithAverage().
WithPeriod(hledger.PeriodType(m.period.periodType))

optsPretty := opts.WithPretty().WithLayout(hledger.LayoutBare).WithAccountDrop(1)
Expand Down

0 comments on commit f2587a7

Please sign in to comment.