Bug 208330

Summary: Ark should be able to edit files inside archives
Product: [Applications] ark Reporter: Marc Collin <marc.collin>
Component: generalAssignee: Raphael Kubo da Costa <rakuco>
Status: RESOLVED FIXED    
Severity: wishlist CC: anssi.hannula, hceylan, mte90net, rakuco, stu109382
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 15.12.0
Sentry Crash Report:

Description Marc Collin 2009-09-23 22:37:30 UTC
Version:           2.13 (using 4.3.1 (KDE 4.3.1) "release 163", KDE:KDE4:Factory:Desktop / openSUSE_11.1)
Compiler:          gcc
OS:                Linux (i686) release 2.6.27.29-0.1-pae

that should be very nice to be able to be able to edit a file in ark
Comment 1 Raphael Kubo da Costa 2009-09-24 00:51:50 UTC
What file format are you specifically talking about? There already is support for editing tarballs, zips, rars and 7zs.
Comment 2 Marc Collin 2009-09-24 02:28:35 UTC
i open a jar file, i click on manifest file, ark open it... but i can't edit it...

that could be nice if i can edit it and ark save it
Comment 3 Raphael Kubo da Costa 2009-09-24 02:34:15 UTC
Ah, you mean edit the contents of a file inside the archive and update the archive with it?
Comment 4 Marc Collin 2009-09-24 03:20:45 UTC
ya directly
Comment 5 Anssi Hannula 2010-03-16 10:20:00 UTC
I'd appreciate just having the capability to open a file in read-only mode. Currently one has to use the preview window, which is not suitable for reading large text files, for example.

Editing would be a plus, of course.
Comment 6 Raphael Kubo da Costa 2010-12-08 02:19:10 UTC
Changing the default assignee in the currently open Ark bug reports to me.
Comment 7 Daniele Scasciafratte 2014-05-18 20:29:26 UTC
any news?
Comment 8 Ragnar Thomsen 2015-10-08 16:33:53 UTC
Git commit f1cf10f25af245823f81b8ff457a04c7593dede7 by Ragnar Thomsen.
Committed on 08/10/2015 at 16:23.
Pushed by rthomsen into branch 'master'.

Add an "Open File" action

The action opens an archive entry with the associated application. This
was previously only possible through the "Open With" action, but this
required several clicks. The "Open With" action is renamed to
"Open File With" for consistency.  Currently, the Preview action is
still the default, i.e. when the user clicks an archive entry the
Preview action is called.

QSignalMapper is used to connect the signals from the Open File, Open
File With and Preview actions to the same slot.

As for Preview, the file is extracted to a QTemporaryDir and then
opened. The temporarily extracted file is monitored for changes using
QFileSystemWatcher and on change a KMessageBox is opened to query the
user if the archive should be updated with the modified file. If the
user accepts slotAddFiles() is called.

The previously unimplemented path argument of slotAddFiles() is used to
allow for updating a file in a subdirectory within the archive.
Related: bug 201162
FIXED-IN: 15.12.0
REVIEW: 125339
GUI:

M  +9    -5    part/ark_part.rc
M  +165  -65   part/part.cpp
M  +15   -11   part/part.h

http://commits.kde.org/ark/f1cf10f25af245823f81b8ff457a04c7593dede7
Comment 9 Elvis Angelaccio 2015-10-25 11:47:42 UTC
*** Bug 354266 has been marked as a duplicate of this bug. ***