Skip to content

feat: journal: accept _ and ' as digit group marks (#273, #1489) - #2679

Merged
simonmichael merged 1 commit into
simonmichael:mainfrom
kfkonrad:push-tzqlsmvrlokm
Aug 2, 2026
Merged

feat: journal: accept _ and ' as digit group marks (#273, #1489)#2679
simonmichael merged 1 commit into
simonmichael:mainfrom
kfkonrad:push-tzqlsmvrlokm

Conversation

@kfkonrad

@kfkonrad kfkonrad commented Aug 1, 2026

Copy link
Copy Markdown

This PR adds support for underscores and apostrophies as digit group marks. I've added tests where I deemed them relevant, please let me know if you'd like to see tests added in other places (or any other changes I should make)

Closes #273, #1489.

side note: I haven't used any AI generated code in the commit per your policy for first time contributors. I have however used Claude to review my code and have added that as AI usage to my commit message

@simonmichael simonmichael added journal The journal file format, and its features. A-WISH Some kind of improvement request or proposal. labels Aug 2, 2026
@simonmichael
simonmichael merged commit f1012c2 into simonmichael:main Aug 2, 2026
1 check passed
simonmichael added a commit that referenced this pull request Aug 2, 2026
@simonmichael

Copy link
Copy Markdown
Owner

Thank you!

@kfkonrad
kfkonrad deleted the push-tzqlsmvrlokm branch August 2, 2026 09:36
simonmichael pushed a commit that referenced this pull request Aug 2, 2026
…counts [#2679]

When reviewing a long chart of accounts, clicking an account reloaded the page
scrolled to the top, so the sidebar jumped back to the top and you lost your
place while working down the account list.

The sidebar and the main content now scroll independently (on wider screens),
so the window itself doesn't scroll, and the sidebar's scroll position is
remembered across navigations (per-tab, in sessionStorage). The account you
clicked stays exactly where it was. This is most noticeable with a long account
list, and/or long transaction lists, where both panes extend below the viewport.

AI usage: Claude Opus 4.8, ~1M output tokens
simonmichael pushed a commit that referenced this pull request Aug 2, 2026
…nt [#2679]

Restoring from $(document).ready caused a visible stutter on pages with
a long journal/register: hledger.js loads at the end of the body and
ready fires only after the whole document is parsed, while the browser
paints the sidebar (at scroll position 0) much earlier, so the sidebar
appeared at the top of the account list and then visibly jumped down to
the restored position.

Restore instead from an inline script right after the sidebar's markup
in default-layout.hamlet: it runs mid-parse, before the sidebar is
first painted, so the sidebar always appears directly at the restored
position. Also set the flag that ignores the restore's own scroll event
only when the restore actually moved the sidebar, so it can't swallow
the user's first real scroll on pages where no scroll event fires.

When reviewing a long chart of accounts, clicking an account reloaded the page
scrolled to the top, so the sidebar jumped back to the top and you lost your
place while working down the account list.

The sidebar and the main content now scroll independently (on wider screens),
so the window itself doesn't scroll, and the sidebar's scroll position is
remembered across navigations (per-tab, in sessionStorage). The account you
clicked stays exactly where it was. This is most noticeable with a long account
list, and/or long transaction lists, where both panes extend below the viewport.

AI usage: Claude Fable 5, (estimate included in previous commit message)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-WISH Some kind of improvement request or proposal. journal The journal file format, and its features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't use a quote as digit grouping character

2 participants