-
Notifications
You must be signed in to change notification settings - Fork 565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slice shortcuts #3447
Slice shortcuts #3447
Conversation
Menu entries already exist - they should work for single selected file as for multiply selections. What's wrong here? It is just bug that it doesn't slices all selected files. |
...and what is:
? |
That's a fair point, the Align actions already do operate on multiple selected clips so there's some precedent there. Of course, whether that works correctly right now will depend on whether the selection list is accurate, but that's equally true of the keyboard shortcuts. I wonder whether just changing the Clip context menu "Slice" to operate on multiple selected items would be OK, or if it risks screwing up users expecting the existing functionality. Arguably it's just making Slice function in a way that's closer to what a typical user would expect. (After all, why would you select multiple clips if you only want to slice one of them?) But if there are users who regularly slice a single clip while having multiple selected, having come to expect that Slice works that way, then to avoid screwing up those users these new Slice options should have a separate context menu subsection that, like Align, only shows up when two or more items have been selected. (Edit: Continuing a half-thought, from a keyboard perspective it doesn't matter. Slice Selected is equivalent to Slice when only one clip is selected, so the keyboard shortcuts for Slice Selected will cover all of the different possible combinations of selection-slicing, including the reductive one where only a single clip is selected.)
Aha, that's right. I mentioned in #1764 that there might already be a fix pending for that.
...I guess, proof that I KAN SPEL? I'll fix that, thanks. |
Unfortunately, right now they are clicking twice and more times the same option just to complete the intended slicing task. |
Depends how they select. "Draw-a-box" group selection works fine, and there are definitely some users who do all of their multi-selection that way. |
No, I mean slicing: click clip - slice one. Multiply selections doesn't works in any way (rectangle selections or not). Only Slice All is doing its job right now, but that may slice clip at background... |
@SuslikV Aha! Yeah, gotcha. |
Your code adapted to
|
Razor Tool works for single item only. This may be leaved unchanged. |
Agreed, not even considering a trip down that road. If the user wants to slice multiple clips at once, they need to use the playhead and Slice All or Slice Selected. In fact, nearly every function of the Razor Tool now has a viable-if-not-superior alternative using the playhead "razor" functions. If not for the tool's ability to quickly slice single UN-selected clips, I'd say there's no longer any reason for it to even exist. But, it still is the quickest/best way to slice a single clip without having to worry about selection or playhead position, so I guess it lives to slice another day. |
LOL 😆 |
LGTM! Thanks for this one! |
Hmm. We never resolved the menu-selection issue. I'm sort of leaning more towards @SuslikV 's suggestion that the Clip/Transition context-menu Slice functions become SliceSelected, replacing the current slice options. (If they only have one selected item, SliceSelected will be equivalent to the current single-item slice anyway. The only thing it'll affect is what happens when you activate Slice on a clip while you also have additional clips selected. And that just doesn't feel like a case we should be losing sleep over.) ...Still, I can slap that change into a separate PR, this works just fine for now in its current keyboard-only mode. |
This PR adds slight variations on the "Slice All: (mode)" actions, named "Slice Selected: (mode)", which just like "Slice All" use the playhead as the slice point. However, where "Slice All..." acts on all intersecting clips, "Slice Selected" slices only the intersecting clips which are also currently selected.
As requested, "Slice Selected: Keep Both Sides" is bound to the s key by default (modifiable in the Preferences). For symmetry with the "Slice All" bindings, the other two modes are therefore bound to a and d.
These actions are currently keyboard-shortcut-only, they do not appear on any context menu. (TBH I'm just not sure where they could go, having context menu choices that operate on the active selection — even multi-selection, possibly — and also depend on the playhead positioning... it just feels like it could get pretty messy.)
Fixes #1764