Bug 440748 - Option in the file picker to open image
Summary: Option in the file picker to open image
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: Open/save dialogs (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-08 17:39 UTC by manuelchaves
Modified: 2021-09-19 18:38 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.87


Attachments
Open in item context menu (66.25 KB, image/png)
2021-08-12 19:59 UTC, manuelchaves
Details

Note You need to log in before you can comment on or make changes to this bug.
Description manuelchaves 2021-08-08 17:39:08 UTC
1) Want to upload an appropriate image
2) Open file picker
2) Scan directory with thumbnail view to find one I like
3) Find something interesting but I'm not sure if I want to use it
4) Maybe it has a small detail like small text I need to check out
5) I would prefer to open this image with the image viewer to fully inspect it
6) Only option is "Open Containing Folder" which opens a Dolphin instance and goes to the file. An extra instance which I will have to close later.

If there was an "Open" or "Open Image" option in the context menu of thumbnails I could quickly open/use/close image viewers when inspecting the images without having to open an extra Dolphin instance. 

This could be expanded to other kinds of files beyond images of course.
Comment 1 Nate Graham 2021-08-09 13:45:52 UTC
How about the inline preview? You can open it with the F11 key, or the relevant menu item in the settings menu (accessible from the configure button in the top-right corner of the window).
Comment 2 manuelchaves 2021-08-09 16:33:47 UTC
>How about the inline preview? 
The problem with the inline preview is that it's not enough some times. For instance what if you need to check a small detail that requires some zooming-in to inspect (since it's important to upload the correct file), is the inline preview enough? Would adding this make the file picker more complex? Seems it's a matter of checking the file type and showing or not showing the Open option to open with the associated program. I just think it's a worthy addition, which has already been implemented in other DE's (like Windows).
Comment 3 Nate Graham 2021-08-12 16:53:53 UTC
All right, so basically what you want is macOS's Quick Look functionality, but built into the file browser (as theirs is).
Comment 4 manuelchaves 2021-08-12 19:59:28 UTC
Created attachment 140672 [details]
Open in item context menu
Comment 5 manuelchaves 2021-08-12 20:00:48 UTC
Quick Look seems to involve separate preview programs for each file type. That's not exactly what I meant, that would be more complicated as each preview type would have to be implemented. What I mean was just a menu entry in the _FILE PICKER_ items context menus to open the file with their associated program.

See attached image ^^
Comment 6 Ahmad Samir 2021-08-17 19:43:33 UTC
It sort of makes sense in the situations of picking a file to attach to a mail or a bugzilla report or to upload to some web service. On the other hand, it sounds weird to have an "open with" menu in the open file dialogue....
Comment 7 Bug Janitor Service 2021-08-19 15:11:50 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/552
Comment 8 Ahmad Samir 2021-09-19 18:38:51 UTC
Git commit ceb192629f41838bad9acc586b1ef7178fff9a8e by Ahmad Samir.
Committed on 19/09/2021 at 18:38.
Pushed by ahmadsamir into branch 'master'.

KDirOperator: provide an option to enable showing open-with item actions

The use case here is KFileWidget, even though it sounds weird to add
open-with actions to the open file dialog, it still makes sense if you're
uploading an image to some web site, while picking the image you may want
to open it in a full-fledged viewer; another example, when uploading/attaching
a text file to a bug report or mail client composer, you may want to check
the contents of the file. This is more intuitive than 'open containing folder'
then opening the file.
FIXED-IN: 5.87

M  +48   -0    src/filewidgets/kdiroperator.cpp
M  +10   -0    src/filewidgets/kdiroperator.h
M  +1    -0    src/filewidgets/kfilewidget.cpp

https://invent.kde.org/frameworks/kio/commit/ceb192629f41838bad9acc586b1ef7178fff9a8e