Skip to content

Conversation

@lgfang
Copy link
Contributor

@lgfang lgfang commented Oct 23, 2025

Implement beancount-date-up and beancount-date-down to increment/decrement date components based on cursor position. When cursor is on the year, adjust by years; on month, adjust by months; on day, adjust by days. Includes proper handling of month boundaries and day overflow (e.g., Jan 31 to Feb 28/29).

Example configuration:

  (use-package beancount
    ;; ...
    :bind (
           (:map beancount-mode-map
                 ("C-c <down>" . beancount-date-down)
                 ("C-c <up>"   . beancount-date-up))
           (:repeat-map beancount-repeat-map
                        ("<down>" . beancount-date-down)
                        ("<up>"   . beancount-date-up))))

@blais
Copy link
Member

blais commented Oct 26, 2025 via email

Implement beancount-date-up and beancount-date-down to increment/decrement
date components based on cursor position. When cursor is on the year, adjust
by years; on month, adjust by months; on day, adjust by days. Includes proper
handling of month boundaries and day overflow (e.g., Jan 31 to Feb 28/29).
@lgfang
Copy link
Contributor Author

lgfang commented Oct 26, 2025

@blais Thanks for checking this out. The failures are due to new options in bean-doctor 3.2.0, not changes in this PR. I've opened #69 to address the failures separately. Could you please merge that PR first? I'll rebase this one after.

@blais blais merged commit 54730b0 into beancount:main Oct 27, 2025
0 of 10 checks passed
@blais
Copy link
Member

blais commented Oct 27, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants