nvim-orgmode / nvim-orgmode/orgmode

org_timestamp_{up,down} with count behaves unexpectedly on minutes

Open
#396 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Lua
Stars
3.9k
Forks
190
Avg merge
2d 13h
Merged PRs (30d)
7

Description

Describe the bug

When using org_timestamp_{up,down} with a count on minutes, the value is changed by count times org_time_stamp_rounding_minutes rather than count minutes.

Also there's inconsistent spelling of timestamp and time_stamp in the options.

Steps to reproduce
  1. set org_time_stamp_rounding_minutes = 5
  2. put cursor on minutes part of datetime
  3. do 15<C-A>
Expected behavior

15<C-A> increases 15 minutes regardless of the value of org_time_stamp_rounding_minutes.

Emacs functionality

No response

Minimal init.lua

Reproducible on default settings.

Screenshots and recordings

No response

OS / Distro

Arch

Neovim version/commit

NVIM v0.7.2

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the org_timestamp_{up,down} implementation and the org_time_stamp_rounding_minutes option handling, then reproduce the reported 15-minute increment with rounding set to 5. Done means a count changes minutes by that many minutes independently of rounding, with the timestamp option spelling made consistent if it remains in scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, neovim
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.