Bug 339971 - Detach Tabs / Combine multiple windows in tabs
Summary: Detach Tabs / Combine multiple windows in tabs
Status: CONFIRMED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.20.2
Platform: Kubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 411911 442256 465117 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-10-15 08:08 UTC by Apoorv Parle
Modified: 2024-05-31 08:39 UTC (History)
21 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Apoorv Parle 2014-10-15 08:08:34 UTC
I couldn't find a way to detach tabs inside Okular once I enable "open new files in tabs". This is especially necessary when I want to compare PDF files by opening side by side.

An exact reverse problem also exists i.e. multiple windows cannot be combined into a single window with tabs.

Reproducible: Always

Steps to Reproduce:
1. Open 2 PDF files with "open new files in tabs" enabled.
2. No way to detach them
3.  Alternative problem: Open 2 files with the same option disabled. There is no way to combine the two files opened in different windows, into a single window with tabs


Expected Results:  
1. Dragging the tab out of the body of the okular window should detach the tab into a new window, similar to all modern browsers.
2. Dragging a window/tab from one window into other should add a tab, similar to all modern browsers.
3. Right clock on tab should have an option to detach tab. (not a necessary option, as dragging is more intuitive)
Comment 1 Christoph Feck 2014-10-23 21:08:59 UTC
Konsole does it, by adding lots of code to QTabBar that should be in Qt, see https://bugreports.qt-project.org/browse/QTBUG-3160

I do not think every application developer should have to duplicate that code, but use the feature when (if) it will be available in the Qt libraries. Please add your vote to the referenced Qt bug entry.
Comment 2 Pastafarianist 2018-01-13 12:34:19 UTC
The most recent link to the Qt issue is https://bugreports.qt.io/browse/QTBUG-3160.
Comment 3 Jonas 2019-10-25 00:32:39 UTC
Yes we need this!
Comment 4 postix 2020-02-29 22:54:59 UTC
*** Bug 411911 has been marked as a duplicate of this bug. ***
Comment 5 Philipp A. 2020-03-09 14:43:27 UTC
That functionality could of course also go to some KDE framework in the meantime.
Comment 6 Robert Riemann 2020-03-27 14:41:10 UTC
Dear all,

I have learnt recently, that Okular supports tabs. This is so cool!

Though today I have learnt a downside to it. I want to read two PDFs in parallel and have them opened on left and right side of my screen.

So I tried, like I know from Firefox, to drag a tab out of Okular to detach it to a new Okular window. This is not supported. I also have not found any other mean to open once a file outside in a second Okular window.

I double checked and noticed that Dolphin does not support this either. So maybe this should be even implemented in a re-usable way for integration in other Qt/KDE apps.

Just one moment before submitting a new bug report, I got this report suggested.  I agree with you all. There should be code in Qt. Unless this is the case, we can maybe have a menu option "Detach to new window"?

Best,
Robert
Comment 7 Michael D 2020-03-27 14:46:00 UTC
It's easy to open multiple instances of okular; e.g., just use krunner each time. You can then either open the file from okular's window or else drag a file from your file manager into the okular window to open it there. Obviously it would be far more convenient to have the option to detach tabs, but convenience is not a necessity.
Comment 8 Roberto Orden 2020-10-10 14:56:48 UTC
I have found in the same situation: "I want to compare 2 pdfs opened when Okular open documents in tab by configuration"

I have tested to do the steps wrote in the last comment and it works. The problem is that the UX in order to this is poor and get a behaviour like Firefox for example, will be fantastic!

Note: I've register into QT platform in order to vote the issue quoted
Comment 9 mateMat 2021-01-07 15:36:54 UTC
+1 for this feature
Comment 10 Mike 2021-07-08 15:33:49 UTC
+1 for feauter
Comment 11 Jan Paul Batrina 2021-09-10 13:17:53 UTC
*** Bug 442256 has been marked as a duplicate of this bug. ***
Comment 12 Michael D 2023-01-11 16:20:46 UTC
Detaching tabs is useful for those who prefer to open new files in tabs by default. However, having an option to open new files in a tab (e.g. accessible in the toolbar or the hud) would be useful for those who prefer to open new files in new windows by default.
Comment 13 Michael D 2023-01-29 19:47:48 UTC
(In reply to Michael D from comment #12)
> Detaching tabs is useful for those who prefer to open new files in tabs by
> default. However, having an option to open new files in a tab (e.g.
> accessible in the toolbar or the hud) would be useful for those who prefer
> to open new files in new windows by default.

To add to this, another option would be what kwrite does: open documents (e.g. from a file manager) in a new window, but when using the open option from the program (e.g. ctrl + o), open in a tab.
Comment 14 andreas.naumann 2023-02-01 18:45:50 UTC
*** Bug 465117 has been marked as a duplicate of this bug. ***
Comment 15 benedikt.keppner 2024-03-16 13:32:10 UTC
Since this issue is now open for quite a long time, and the QT issue even longer without any hope, I think it would be appropriate to develop the detach feature inside okular instead of waiting another decade... 
I pulled the repo and was able to implement a rightclick feature with close/detach tab in a half an hour, so it is definitely not complicated. Although I must say, that I am not familiar with the okular source code, so my code is not at all good. 
Nevertheless, if a merge request for this feature would be opened, I would definitely give my best to help to develop a good solution!

Using okular VERY regular on a dual  monitor setup, i can say it is extremely annoying to manually open new instances of okular and searching for pdfs again and again.