Bug 208330 - Ark should be able to edit files inside archives
Summary: Ark should be able to edit files inside archives
Status: RESOLVED FIXED
Alias: None
Product: ark
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Raphael Kubo da Costa
URL:
Keywords:
: 354266 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-23 22:37 UTC by Marc Collin
Modified: 2015-10-25 11:47 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 15.12.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***