Skip to content

AutoFill: times, quarters, ordinals and mixed sources continue as series - #483

Merged
h-a-n-a-s-h-i merged 2 commits into
storytold:mainfrom
nihilist-narwhal:fix-autofill-series
Oct 13, 2026
Merged

h-a-n-a-s-h-i merged 2 commits into
storytold:mainfrom
nihilist-narwhal:fix-autofill-series

Conversation

@nihilist-narwhal

Copy link
Copy Markdown
Contributor

AutoFill copied a single time and any source without a common pattern, counted Qtr3 on to Qtr5, and turned 1st Period into 2st Period. Following Excel, 9:00 now continues 10:00, 11:00; Qtr3 and Quarter 3 wrap after 4 like Q3; 1st Period continues 2nd Period, 3rd Period; and Product 1, On backorder continues Product 2, On backorder (plain drag only; Ctrl+drag keeps #264's alternate mode). Fill Series with a growth step below 1 and a stop value now stops in the direction the series runs, not only for rising series.

The Python-in-cells PRs (#469, #477, #482) touch the same line in fill.rs; whichever lands second keeps both conditions.

Following Excel's AutoFill series:
- a single time steps by an hour (9:00, 10:00, 11:00); it was copied.
- Qtr3 and Quarter3 wrap after 4 like Q3; they counted on to Qtr5.
- 1st Period continues as 2nd Period, 3rd Period; it gave 2st, 3st.
- a source without a common pattern (Product 1, On backorder) continues
  each cell's own series; it was copied as is.
A growth series with a step below 1 stopped at once when given a stop
value, since the stop was only checked for rising series. It now bounds
the series in the direction it runs.
@h-a-n-a-s-h-i
h-a-n-a-s-h-i merged commit 79fed48 into storytold:main Oct 13, 2026
1 check passed
@echelon

echelon commented Oct 13, 2026

Copy link
Copy Markdown
Member

Merged — thank you @nihilist-narwhal for the contribution!

If you haven't already, come join us on Discord: https://discord.gg/artcraft

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.

3 participants