Openshot-qt: Keyboard shotcut to slice just the selected clip

Created on 2 Jul 2018  路  13Comments  路  Source: OpenShot/openshot-qt

Describe the bug
Keyboard shotcuts Ctrl-L & Ctrl-J slice all tracks instead of just the selected one.
(Right click menu -> Slice -> Keep Left etc. does the right thing)

System Details (please complete the following information):

To Reproduce
Steps to reproduce the behavior:

  1. Add 2 clips on above each other
  2. Select a place in the middle to cut
  3. Select on of the clips
  4. Press Ctrl-J or Ctrl-L

Expected behavior
Only selected clip is sliced

interface pending 馃挕 enhancement

All 13 comments

openshot_bug

@timlau - May I ask what tool you used to create this animated GIF showing the issue that you're reporting? That looks very useful! 馃槈

Now, regarding the issue that you've reported, CTRL+J and CTRL+L are listed in the Keyboard section of the Preferences as Slice All: Keep Right Side and Slice All: Keep Left Side, respectively.

There currently are no keyboard shortcuts for Slice Selected...

As @N3WWN says, Ctrl-L and Ctrl-J are documented as "Slice All: Keep {Left/Right} Side". Ditto Ctrl-K for "Slice All: Keep Both Sides". And they worked that way in 2.4.1 as well, so I think the 2.4.2-issue label is erroneous. If anything, this is a feature request, as to my knowledge there never was a "Slice Selected" keyboard binding.

Right-clicking on a Clip invokes the Slice function on _that Clip_, same as using the Razor Mode tool. Which is different from "Slice All".

@N3WWN - Precisely what I was thinking! Pretty neat tool! I'd like to know what it is, too.

@ferdnyc - Fixed it, sir! :)

@N3WWN the gif is a screen cast, process with the chop filter in shotcut and rendered to a GIF (1024x720, 10 FPS).(keymon is used to show the keypresses)
I can see that that in the keyboard shotcut in preferences Ctrl-L & J is assigned to slice all, but
when i right click on a selected clip and select slice the shotcuts is listed on the menu.
But when i right click on time marker and select slice all,no shotcuts is listed.
openshot-slice

So if i understand it right, there is no keyboard shotcut to spit the selected clip ?

I can see that that in the keyboard shotcut in preferences Ctrl-L & J is assigned to slice all, but
when i right click on a selected clip and select slice the shotcuts is listed on the menu.
But when i right click on time marker and select slice all,no shotcuts is listed.

Oh! You're absolutely right, and that's definitely a new bug. Those shortcuts weren't shown there in 2.4.1. But I do see them as well in the 2.4.2 AppImage. So, now we're back to this indeed being a 2.4.2 bug.

So if i understand it right, there is no keyboard shotcut to spit the selected clip ?

Not to my knowledge, no. Though it would probably be a good thing to have.

Actually, I don't really understand _why_ those shortcuts weren't showing in 2.4.1, because the commit that added them to the menus (in the wrong place) was made two _years_ ago, and should've been in 2.4.1 as well. It's not clear to me what changed between 2.4.1 and 2.4.2 that would affect this. Unless I just did something wrong in testing, and they really were present in 2.4.1 as well.

Regardless, #1780 fixes the issue of the shortcuts showing in the wrong menu. It doesn't address the lack of Slice keyboard shortcuts for the selected Clip.

I just came across the same "issue". Will a slice for the selected clip be added anytime soon?
Also, what does the "Split" shortcut do? I couldn't see any effect using it.

I just came across the same "issue". Will a slice for the selected clip be added anytime soon?

Any suggestions for the default shortcut bindings? We're running pretty low on available combos, and _picking_ the shortcuts may be one of the most difficult parts of the task.

Also, what does the "Split" shortcut do? I couldn't see any effect using it.

Unless I'm mistaken, when you have a media file selected in Project Files, that'll open the Cutting dialog where you can trim the source file down to just the part you need, or divide a single file up into multiple clips. No effect on anything on the Timeline, only Project Files.

I just came across the same "issue". Will a slice for the selected clip be added anytime soon?

Any suggestions for the default shortcut bindings? We're running pretty low on available combos, and _picking_ the shortcuts may be one of the most difficult parts of the task.

Shift-J / Shift/K; it helps to remember the letters because they are the same.
Or re-assign current keys to slice single track, and increase to crtl-shift-J/K to slice all. Reduces risk of accidentally slicing all when pressing the wrong modifier key, but may upset current users that are used to that combo.

Simply "S". Reaper (a DAW, not video editor) splits the selected track with that, so I'd reset the shortcut to that anyway. Otherwise the current one for slicing all is Ctrl+K so I guess Ctrl+Alt+K or just Alt+K would work nicely (so along the lines of MBB232's answer. Just using Alt, since it usually is meant for alternative actions of the given command).

We don't currently have any shortcuts bound on both the shifted and unshifted versions of the same letter key. I suspect that's intentional/deliberate, and means that it doesn't work correctly.

Alt bindings are similarly not available for remapping, unfortunately, because Qt will process those as menu accelerators.

Plain 'S', surprisingly enough does appear to be free. Bare-letter shortcuts can be a tiny bit problematic because they inherently conflict with any text input fields, and weird things can happen with keyboard focus at times. But it's not like we don't have several of those already, so one more shouldn't be a problem.

Done, in #3447. Three new keyboard shortcuts: "Slice Selected: Keep Both Sides" is bound to s as requested, and since they were both free, a and d got the corresponding "Keep Left Side" / "Keep Right Side" operations.1 When activated they will slice only the selected timeline item(s) that also intersect with the playhead.

They do support multiple selections, although our Ctrl-click multi-selection is a little broken in ways that can trip it up just like any other selection-dependent function. (There might be a PR that fixes that, I don't recall.) Regardless, multiple items selected using "draw-a-box" type group selection or Ctrl+A work fine, though of course select-all + slice-selected == slice-all, so that one's pretty pointless.

These are keyboard-only actions for now, they don't appear in any context menu. The actual shortcut keys are reconfigurable in the Preferences, as usual.

Notes

  1. Edit: (Actually, reverse that. a is bound to "Keep Right Side", the same way Ctrl+j is for "Slice All".)
Was this page helpful?
0 / 5 - 0 ratings

Related issues

Yesideez picture Yesideez  路  3Comments

audioclown picture audioclown  路  3Comments

sspmrsomebody1 picture sspmrsomebody1  路  3Comments

Emma3993 picture Emma3993  路  3Comments

Geoff0627 picture Geoff0627  路  3Comments