Bug 469179 - Re-add an easy way to open the same image in a new window
Summary: Re-add an easy way to open the same image in a new window
Status: RESOLVED FIXED
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: Git (add output of "git log -1 --oneline" to description)
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-30 08:45 UTC by phd
Modified: 2023-05-25 21:36 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 23.08


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description phd 2023-04-30 08:45:12 UTC
SUMMARY
After https://bugs.kde.org/show_bug.cgi?id=462088 there is now no way to open an image from a directory view in a new Gwenview window (I still want to browse this directory).
Nor duplicate the currently open image into a new window.

OBSERVED RESULT
No Gwenview in context menu's Open With submenu.

EXPECTED RESULT
1. A way of opening image from directory view in a new Gwenview window.
2. A way to duplicate currently opened image into a new Gwenview window.
OR
Just keep the Open With menu consistent across all applications.
Is there a point to hide one item? That doesn't really save space.

SOFTWARE/OS VERSIONS
Gwenview: 23.04.1
Comment 1 Holger 2023-05-14 22:12:40 UTC
My usecases:

1. When looking at similar photos (e.g. a series of 10 pics shot in short time of a group and trying to identify the best to keep with the least amount of closed eyes / open mouths ...) I open my "current favorite" in a new gwenview instance, while I jump back and forth through the remaining 9 pictures. Yes, gwenview has a "side-by-side comparison" for multi-selection, but it cannot navigate the second picture view independently. Moreover I find it easier, to make the computer toggle the image in the same place, instead of me flipping my eyes like in those news-paper-riddles, where you shall find the differences between two photos. Alt+Tab gives me this easily when pressed quick enough to not trigger the animation. Also I know, gwenview can in full screen navigate back and forth through the pictures (one at a time). But it is bound by an order - so to toggle back and forth between the 2nd and 8th picture in the set, I need to symlink them in a temp-folder, which is just too cumbersome.

2. Going through my collection with e.g. the task: symlink all nice pictures of my mother to folder xyz, so I can later present them to her for choosing the one to put on the birthday invitations, I get distracted by "Who's sitting next to her? - Maybe I can find this shirt again on my dads camera ...". For this temporary "side-quest" I open a second gwenview instance to not loose the position on my earlier quest, because I don't want to again flic through the 300+ pictures I already sifted through.

3. Reading a comic strip as a sequence of pictures, you might want to refresh your memory, when there is a back-reference or even, how the character looked like when he showed up last - was he already in the previous installment wearing this long cape? Now, how to keep the current position and at the same time jump around to find the other occurrence for comparison?

To summarize the similarity of those use-cases: The current selection in gwenview is on the one hand very fleeting and easily destroyed information - by just selecting something else. On the other hand, especially in large folders with many pictures, it can be a valuable marker e.g. of progress or a "bookmark" to jump (back) to. While I usually finish with it in a matter of a few minutes, it is not worth the hassle of e.g. taking a note of the filename or symlinking the picture on the Desktop to return to the task tomorrow. So opening a second or third instance of gwenview suits my workflow perfectly.

It's actually quite comparable to browsing on the internet, only that I use full gwenview windows instead of browser tabs to mark certain positions in the picture collection, in time and in progress of a supposed "reading list". Now imagine the outcry, if Firefox removed the "open in new tab" command?

But before someone over-engineers this into a fancy new "annotated image-history", there is not only the image itself to be preserved. In the second example notice the current task comprises also symlinking found pictures to folder xyz  - so you bet, the folder view is open and not the image information and it is scrolled and unfolded appropriately to show xyz as a prominent drop-target. Navigating other folders surely will unfold more "clutter" and shunt xyz out of the way and returning to a bookmarked picture will likely not restore the folder-tree. All this I get for free by opening a second instance.
Comment 2 Bug Janitor Service 2023-05-15 10:00:18 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/gwenview/-/merge_requests/199
Comment 3 Nate Graham 2023-05-16 17:18:18 UTC
Git commit 83dc031b65d3e1406fbb6a5b049b6f32238adc78 by Nate Graham, on behalf of Eugene Popov.
Committed on 16/05/2023 at 17:18.
Pushed by ngraham into branch 'master'.

Add an action to open in a new window

After Bug 462088 was resolved by removing Gwenview from its own "Open With"
menu, it turned out that some people were using this for various workflows.

To support them in a way that doesn't look like a bug to users without
those workflows, this commit adds an action that allows the user to open
the currently selected item or currently viewed image in a new window.
FIXED-IN: 23.08

M  +31   -3    app/fileopscontextmanageritem.cpp
M  +2    -0    app/fileopscontextmanageritem.h
M  +1    -0    app/thumbnailviewhelper.cpp
M  +1    -0    app/viewmainpage.cpp

https://invent.kde.org/graphics/gwenview/commit/83dc031b65d3e1406fbb6a5b049b6f32238adc78
Comment 4 Holger 2023-05-25 21:34:41 UTC
Thanks for the quick reaction. Only I marvel, if this solution doesn't add unnecessary complexity?
- first you filter the "open-with" menu with extra code, that would give us the wanted feature "for free"
- second you re-implement an open in Gwenview somewhere else with extra code.

Haven't seen it in action and don't know jet, how it feels - But there is a chance that it is out of place and users need to tolerate another quirk in the GUI, that Gwenview itself is the only app not showing up in open with, even though it is in open with of Dolphin or others (e.g. Gwenviews own file-open-dialog, that features a rightclick menu with the file-managers open-with instance, right?).

To reconcile me, I hope for a keyboard-shortcut that can be customized to the new command? Sadly, the old open with was hard to reach form the keyboard.
Comment 5 Nate Graham 2023-05-25 21:36:31 UTC
That had actually occurred to me as well, but ultimately I think this solution works acceptably because it makes the intended workflow clear. And yes, the new approach can be customized with a keyboard shortcut to trigger it quickly and easily.