Review Request 125339: Add an "Open" action

Kai Uwe Broulik kde at privat.broulik.de
Mon Oct 5 09:23:10 UTC 2015



> On Sept. 21, 2015, 8:57 nachm., Thomas Pfeiffer wrote:
> > No objections from the usability side.
> > About the quesiton what should be the default: Honestly, do we even need the preview mode at all? Why does Ark have to do things which other applications can already do?
> > My vote would be for killing the preview function alltogether and making "Open" the default. If the preview mode stays, it should stay as default, because nobody would use it if it wasn't the default action
> 
> Ragnar Thomsen wrote:
>     Thanks for your comment. Regarding the Preview action, it opens a read-only viewer using KParts technology. Personally, I can't see the usefullness of it, but maybe some users like it. Arguments in favor of keeping it would be that it might be faster than opening a full external application and that it uses KDE-unique technology (KParts). Not sure if the latter is even a valid argument. I have taken a look at three other file archivers (Winrar, 7-Zip for Windows and GNOME's File-roller). Of those, only Winrar provides an integrated text viewer, while the other two just open the file using the associated app. The internal previewer in Ark is also broken for some mimetypes such as XML (see bug 201162) and adds dependency on KF5KHtml framework which is in Porting Aids (meaning we have to port it to something else at some point).
>     
>     Do you have any opinion on what the names should be for "Open archive" and "Open file" actions (both are currently named just "Open")?
> 
> andreas kainz wrote:
>     I would love to see the preview in the right panel there you have an preview of an text file or whatever when you select an file that would be nice for dolphin too and we don't have to talk what should be default.
> 
> Thomas Pfeiffer wrote:
>     Would it be possible to use a whitelist of filetypes for which the preview should be shown, so that it's only used where it works and makes sense?
>     
>     As for the naming: I'd actually name them "Open File With..." and "Open Archive". Actually, I think the whole main menu should be restructured in order to avoid confusion between actions regarding an archive and actions regarding the seleted file within an archive (the whole concept of archives as "files within other files" leads to quite some confusions in an archive manager's UI).
>     GNOME has taken the easy way out: They just didn't put the action to open a file within an archive in the main menu at all. This would be in conflict with our HIG, though (never use a context menu as the only way to execute an action), so we need both in the main menu.
>     
>     The main menu restructuring should not be part of this patch, though, so you should leave it as "Open File With..." and "Open Archive"

> Would it be possible to use a whitelist of filetypes for which the preview should be shown, so that it's only used where it works and makes sense?

Dolphin (KIO) has a setting for which files to preview, I would expect it to follow that setting.


- Kai Uwe


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/125339/#review85725
-----------------------------------------------------------


On Okt. 4, 2015, 6:26 nachm., Ragnar Thomsen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/125339/
> -----------------------------------------------------------
> 
> (Updated Okt. 4, 2015, 6:26 nachm.)
> 
> 
> Review request for KDE Utils, KDE Usability, Elvis Angelaccio, and Raphael Kubo da Costa.
> 
> 
> Bugs: 201162 and 208330
>     http://bugs.kde.org/show_bug.cgi?id=201162
>     http://bugs.kde.org/show_bug.cgi?id=208330
> 
> 
> 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/20151005/5c2fa5c1/attachment-0001.html>


More information about the Kde-utils-devel mailing list