Allow deleting a clip with automatic shifting of the following clips
@aleb
Submitted by Alex Băluț Assigned to Michał Górny @mgorny
Description
The default keyboard shortcut could be shift+del. (If using Pitivi's mechanism, it will be possible to customize it in the preferences dialog)
The deletion part is simple.
The shifting will be performed only if originally no other clips are in the interval [start-of-leftmost-clip, end-of-rightmost-clip], in any layer.
https://github.com/pitivi/pitivi/blob/master/pitivi/timeline/timeline.py
- See how
app.shortcuts
is used in_createActions
for how to add a keyboard shortcut, for example the "Delete" one. - See
get_sources_at_position
in the same file for how to iterate the clips in the timeline.