GNOME Bugzilla – Bug 583254
Ability to view and remove unused files in a project
Last modified: 2011-06-30 23:05:32 UTC
A nice addition could be a tool dialog accessible from the menus, allowing to see - what media is in the sourcelist but not in the timeline - a button to remove those files individually, or remove them all at once from the project Another way this could be implemented is by "simply" having a "In use" column in the clip library, with a gtk insensitive checkbox that reflects the usage (or lack thereof) of a clip in the timeline. If that's the case, this would depend on bug #579533, which would allow to sort the clip library to quickly figure out which are not in use.
How about keeping that information normally hidden, but incorporating the 'in use' flag as a filter option (if and when the 'clip library' items can be filtered)?
I guess if this is done with filtering, this would depend on bug #578710 or bug #586071 There is also the "easy/lazy" way of implementing this, and that is to not have any special "management" interface for it, but just add a menu item: "Project > Remove unused clips" (and perhaps it could show a confirmation dialog listing the clips that will be removed, for safety)
Yeah, that seems like it would work as well. I haven't worked on a large enough project in pitivi yet (<20 source files at the moment) to really make use of a purge feature, however a used/not used display or filter might help ferret out sources that I meant to include but forgot. Of course, if the purge option gave a dialog of unused sources, that might work as well.
It took 4 hours of messing around pygtk, but I have implemented this feature in the following branch: https://github.com/nekohayo/pitivi/commits/select-unused-files My implementation is simple: it adds a "Select Unused Clips" item in the Project menu. When the clips are selected, the user can remove the clips from the project, change the selection, insert them in the timeline, etc. Direct manipulation! No "special UI" needed! Summary: this is simple (both in terms of implementation and interaction) and more flexible for the user.
commit a36b346c47d447113e93793cdec19baf1e25933a Author: Jean-François Fortin Tam <nekohayo@gmail.com> Date: Sat Dec 25 08:49:41 2010 -0500 Add a menu item to "Select Unused Media" commit ddd7ad4381d97d55af9369e2b5dd625f90f77ff3 Author: Jean-François Fortin Tam <nekohayo@gmail.com> Date: Thu Jun 30 18:50:48 2011 -0400 Methods to determine what sources are not used in the timeline commit ce0c7b085df6cc358904362b484b7dff705b957f Author: Jean-François Fortin Tam <nekohayo@gmail.com> Date: Sat Dec 25 13:34:43 2010 -0500 Implement the unused clips selection algorithm in source list