Review Request 125339: Add an "Open" action
Elvis Angelaccio
elvis.angelaccio at kdemail.net
Tue Sep 22 19:03:18 UTC 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/125339/#review85782
-----------------------------------------------------------
My vote would be to leave Preview as default, but let the user change it with Open through a global setting. While many users complain about the Ark Preview, I think that many others, probably more, would complain if we change the default with Open.
Personally I like the Preview feature. Most of the times I only need to check what's in there in, say, a text file within an archive. By previewing that text file, I get a read-only part of Kate without menus, which I don't need. This is imho one of the most powerful feature of KDE.
- Elvis Angelaccio
On Sept. 21, 2015, 8:15 p.m., Ragnar Thomsen wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/125339/
> -----------------------------------------------------------
>
> (Updated Sept. 21, 2015, 8:15 p.m.)
>
>
> Review request for KDE Utils, KDE Usability, Elvis Angelaccio, and Raphael Kubo da Costa.
>
>
> Bugs: 201162
> http://bugs.kde.org/show_bug.cgi?id=201162
>
>
> Repository: ark
>
>
> Description
> -------
>
> Add an Open action, which opens an archive entry with the associated application. This was previously only possible through the "Open With" action, but this required several clicks. 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, Open 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.
>
> Things to consider:
> 1. Should the Open action be the default e.g. when clicking an entry, instead of Preview?
> 2. Currently, the action has the same visible name as the action for opening archives in the File menu. One of them should be renamed. Which one, and to what?
> 3. Should we set some keyboard shortcuts for "Open" and "Open With"? If yes, which?
>
>
> Diffs
> -----
>
> part/ark_part.rc da04d47
> part/part.h 1d733c0
> part/part.cpp 8854fdd
>
> Diff: https://git.reviewboard.kde.org/r/125339/diff/
>
>
> Testing
> -------
>
> Tested with tar-based, zip, rar and 7z archives.
>
>
> File Attachments
> ----------------
>
> Context menu
> https://git.reviewboard.kde.org/media/uploaded/files/2015/09/21/a50431b5-34d5-4831-820a-82b174b4f243__open-1.png
> Action menu
> https://git.reviewboard.kde.org/media/uploaded/files/2015/09/21/dd6f7cbe-b610-4088-8586-4a76b68b6ef4__open-2.png
>
>
> Thanks,
>
> Ragnar Thomsen
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-utils-devel/attachments/20150922/194a09e9/attachment.html>
More information about the Kde-utils-devel
mailing list