Skip to content

Improve Segment Group Selection and Gap Separators#939

Merged
CryZe merged 2 commits into
LiveSplit:masterfrom
CryZe:codex/segment-group-modifier-selection
Jul 22, 2026
Merged

Improve Segment Group Selection and Gap Separators#939
CryZe merged 2 commits into
LiveSplit:masterfrom
CryZe:codex/segment-group-modifier-selection

Conversation

@CryZe

@CryZe CryZe commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add backend-owned exclusive, toggle, and range selection operations for complete segment groups and expose them through the C API
  • rename the split component setting to show_gap_separators and apply it to every pronounced separator caused by omitted rows
  • preserve compatibility with the old JSON field and LiveSplit XML tag while updating settings metadata, API bindings, and localizations

Why

Segment-group selection rules belong in livesplit-core so web, desktop, and other frontends do not need to reconstruct group ranges or duplicate the Run Editor's non-empty-selection invariant.

The separator setting previously referred only to the last displayed split, even though pronounced separators now identify gaps after group headers as well. The generalized name and behavior accurately cover both cases.

Validation

  • cargo fmt --check
  • cargo clippy --workspace --all-targets --all-features
  • cargo test --workspace

CryZe added 2 commits July 22, 2026 12:12
Add backend-owned toggle and range-selection operations for complete segment groups and expose them through the C API. This lets every frontend implement standard modifier selection without reconstructing group ranges or duplicating the editor's non-empty-selection invariant.
Rename the last-split-specific setting to show_gap_separators and apply it to every pronounced separator caused by omitted rows. Preserve existing JSON layouts through a Serde alias and continue accepting LiveSplit's historical XML tag while exposing the accurate name through settings metadata, localizations, and API bindings.
@CryZe CryZe added enhancement An improvement for livesplit-core. feature A new user visible feature for livesplit-core. labels Jul 22, 2026
@CryZe CryZe added this to the v0.14 milestone Jul 22, 2026
@CryZe
CryZe marked this pull request as ready for review July 22, 2026 16:58
@CryZe
CryZe enabled auto-merge July 22, 2026 16:58
@CryZe
CryZe merged commit 99c6fb5 into LiveSplit:master Jul 22, 2026
70 checks passed
@CryZe
CryZe deleted the codex/segment-group-modifier-selection branch July 22, 2026 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement An improvement for livesplit-core. feature A new user visible feature for livesplit-core.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant