Skip to content

fix: Chapter numbering and preserve custom titles on segment reorder#1435

Merged
mgogoulos merged 2 commits intomainfrom
fix/preserve-custom-chapter-titles-on-reorder
Nov 21, 2025
Merged

fix: Chapter numbering and preserve custom titles on segment reorder#1435
mgogoulos merged 2 commits intomainfrom
fix/preserve-custom-chapter-titles-on-reorder

Conversation

@Yiannistaos
Copy link
Collaborator

Fixes two issues in the chapters editor:

  1. Automatic chronological renumbering: Chapters are now automatically renumbered in chronological order regardless of creation order. Previously, creating chapters out of order (e.g., 0-1s, then 6-7s, then 4-5s) would result in duplicate chapter numbers.

  2. Preserve custom titles: When dragging/reordering segments, custom chapter titles are now preserved. Only default "Chapter X" titles are automatically renumbered to maintain chronological order.

Screenshot

image

Updated the renumberAllSegments function to only update chapter titles that match the default 'Chapter X' pattern, preserving any custom titles. Also ensured segments are renumbered after updates for consistent chronological naming.
@Yiannistaos Yiannistaos self-assigned this Nov 17, 2025
@mgogoulos mgogoulos merged commit cd7dd4f into main Nov 21, 2025
3 checks passed
@Yiannistaos Yiannistaos deleted the fix/preserve-custom-chapter-titles-on-reorder branch December 5, 2025 09:14
mgogoulos pushed a commit that referenced this pull request Feb 6, 2026
## [7.3.0](v7.2.0...v7.3.0) (2026-02-06)

### Features

* add package json for semantic release ([b405a04](b405a04))
* add semantic release github actions ([76a27ae](76a27ae))
* frontend unit tests ([1c15880](1c15880))
* Implement persistent "Embed Mode" to hide UI shell via Session Storage ([#1484](#1484)) ([223e870](223e870))
* Improve Visual Distinction Between Trim and Chapters Editors ([#1445](#1445)) ([d9b1d6c](d9b1d6c))
* semantic release ([b76282f](b76282f))

### Bug Fixes

* add delay to task creation ([1b3cdfd](1b3cdfd))
* Add regex denoter and improve celerybeat gitignore ([#1446](#1446)) ([90331f3](90331f3))
* adjust poster url for audio ([01912ea](01912ea))
* Chapter numbering and preserve custom titles on segment reorder ([#1435](#1435)) ([cd7dd4f](cd7dd4f))
* Show default chapter names in textarea instead of placeholder text ([#1428](#1428)) ([5eb6faf](5eb6faf))
* static files ([#1429](#1429)) ([ba2c31b](ba2c31b))

### Documentation

* update page link ([aeef828](aeef828))
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