Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

hledger-ui: Cannot switch from "costs view" to "market values view" #2284

Copy link
Copy link

Description

@lakshayg
Issue body actions

I was trying to switch between the "costs view (B)" and "market values view (V)" when I noticed inconsistency in how B and V behave. I have summarized my observations below.

Current View Keypress Result
normal B costs
normal V market value
market value B costs
market value V normal view (regardless of the previous view)
costs B previous view (normal or market value)
costs V no change

The last two cases (the ones where current view is "costs") seem unexpected.
I would have expected pressing B in costs view would turn it off and go to normal view
and pressing V in costs view would take me to the "market value" view.


Platform: macOS 14.7

$ hledger --version
hledger 1.40-g0f31974c5-20240909, mac-aarch64

Here's a small ledger where I'm able to reproduce this issue.

commodity 1,000.00 USD
commodity 1,000.00 XYZ

P 2024-09-30 XYZ 200 USD

account assets:brokerage:cash
account assets:brokerage:XYZ
account equity:opening_balance

2024-01-01  opening balance
    assets:brokerage:cash         1,000.00 USD
    equity:opening_balance


2024-02-01  buy 2 XYZ
    assets:brokerage:XYZ      2 XYZ @@ 200.00 USD
    assets:brokerage:cash             -200.00 USD
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.Something wrong, confusing or sub-standard in the software, docs, or user experience.bountyThar's some kind o' loot on offer..Thar's some kind o' loot on offer..regressionA backwards step, indicating a weakness in our QA. We don't like these.A backwards step, indicating a weakness in our QA. We don't like these.uiThe hledger-ui tool.The hledger-ui tool.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.