After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 583254 - Ability to view and remove unused files in a project
Ability to view and remove unused files in a project
Status: RESOLVED FIXED
Product: pitivi
Classification: Other
Component: User interface
Git
Other Linux
: Normal enhancement
: 0.14.1
Assigned To: Jean-François Fortin Tam
Pitivi maintainers
Depends on:
Blocks:
 
 
Reported: 2009-05-19 19:54 UTC by Jean-François Fortin Tam
Modified: 2011-06-30 23:05 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jean-François Fortin Tam 2009-05-19 19:54:51 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.
Comment 1 Matt Mets 2010-02-15 17:33:34 UTC
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)?
Comment 2 Jean-François Fortin Tam 2010-02-15 17:45:30 UTC
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)
Comment 3 Matt Mets 2010-02-15 18:21:53 UTC
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.
Comment 4 Jean-François Fortin Tam 2010-12-25 18:41:16 UTC
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.
Comment 5 Jean-François Fortin Tam 2011-06-30 23:05:32 UTC
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