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 644910 - Compare archive files (tar.gz or zip)
Compare archive files (tar.gz or zip)
Status: RESOLVED OBSOLETE
Product: meld
Classification: Other
Component: dirdiff
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: meld-maint
meld-maint
: 437635 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-03-16 12:19 UTC by say10
Modified: 2017-12-13 18:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description say10 2011-03-16 12:19:03 UTC
Sometimes you're editing files inside an archive (for example, OpenOffice files are zipped archives of XML files) and you want to compare the files inside. You could unarchive the files, compare the directories, and rearchive as necessary. But if you want to make quick changes and test their effects, this adds a lot of time. It would be nice for meld to be able to access the files in the archive without unarchiving first.

This might be easy to implement using GVFS.

In terms of user interface, in the "Compare directory" dialog you could select a "Directory, or archive containing a directory".
Comment 1 Kai Willadsen 2011-03-17 07:56:32 UTC
I agree that this might be nice, but I also think that it's somewhat corner-case functionality. Either way, I'm not likely to get time to spend on this any time soon, though I'd take a look at a patch if it appeared.

UI is hard; the gtk filechooser doesn't have a 'file or directory' mode, so we can't actually allow selecting a directory or archive with the same filechooser.

We also don't currently depend on gvfs, though it would be great to add support for it.
Comment 2 say10 2011-03-23 20:11:48 UTC
Alternative UI: Open using the normal file dialog. If the file to be opened is detected to be an archive, open it as a directory (presumably nobody wants to bit-compare zip files).
Comment 3 Kai Willadsen 2011-03-23 20:17:55 UTC
Sure - a normal file dialog is needed. However, we only start a normal file-open dialog for a "File comparison", which is clearly the wrong place to start a zip-based directory comparison... technically fairly easy, but broken UI-wise.

We can punt the whole UI problem until we can get a sensible file chooser, and make zip-comparison only accessible from the command line. Either way, it's an academic point until we have the rest of the code.
Comment 4 Karel Piwko 2011-04-21 12:42:22 UTC
Couldn't this be fixed simply by File/Directory/Archive comparison UI?

I wouldn't say it is a overkill to have another tab in New... menu.
Comment 5 Kai Willadsen 2011-06-12 03:29:28 UTC
*** Bug 437635 has been marked as a duplicate of this bug. ***
Comment 6 GNOME Infrastructure Team 2017-12-13 18:55:46 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/meld/issues/30.