Repository navigation
Proposal: resizing a selected track or strip resizes every selected one (#80) - #84
Open
marcin-koziol wants to merge 1 commit into
Open
marcin-koziol wants to merge 1 commit into
marcin-koziol wants to merge 1 commit into
Conversation
…gTreeC#80) With several tracks selected, only the one whose edge was dragged changed size. Session::resize_targets gives the tracks a resize applies to: every selected track when the resized one is among several selected, else it alone. The arranger's track height (dragging a header's edge, a double-click back to the default) and the mixer's strip width (dragging a strip's edge, a double-click, the strip menu's widths) apply to them, each set to the same size as the dragged one. Alt (arranger) and Shift (mixer) still size every track. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
With several tracks selected, resizing one of them now resizes all of the selected tracks:
Resizing a track or strip that is not selected still changes only that one. Alt in the arranger and Shift in the mixer still resize every track or strip.
How
Session::resize_targets(track)returns the tracks a resize applies to:trackis one of several selected;trackalone.The arranger and the mixer turn a resize into
Action::Severalof the existing per-trackSetTrackHeight/SetStripWidthactions. These actions are layout only and not undoable, as before, so no new action was added.Open choice: the same size or proportional?
The comment on #80 asks what should happen when the selected tracks already have different sizes. This PR gives each selected track the dragged track's new size, as Pro Tools and Reaper do. A proportional resize, where each track grows by the same factor, is the other option; it would be a small change in
heightsandwidthsif preferred.Tests
dragging_a_selected_tracks_edge_sizes_every_selected_track(arranger) checks that:dragging_a_selected_strips_edge_sizes_every_selected_strip(mixer) checks that the drag and the strip menu's width apply to both selected strips, and that an unselected strip's menu changes only that strip.clippy -D warningson session, arranger and mixer is clean, and so isfmt --check.🤖 Generated with Claude Code