SUMMARY Please consider adding a command line option to force the opening of the document(s) passed on the command line in a tab of an existing okular instance or in a new window. E.g. `okular --new-tab file.pdf` or `okular --new-window file.pdf`. Rationale: This eases opening 2 documents in separated windows that can be placed side to side for comparing them, even if as a general setting one prefers having the "open new files in tabs" option set.
I have some questions to that feature request: 1. How should new-window behave with multiple files? open all files in the new instance and one tab per file in case "use-tabs" is enabled? (if use-tabs is disabled, okular will use multiple instances/windows anyway) or should it open one window per file? I suggest to call the option "new-instance" and then open all files in tabs. If "use-tabs" is disabled then "new-instance" will have no effect. 2. If the users want to use tab, they can enable them. Thus, I see no real use in "--new-tab". 3. Instead of "--new-tab", I would prefer something like "--target <okular-dbus-name>" . That flag would open all files in new tabs of the specified instance. Does that qualify for another feature request?
Late answer to the questions: > 1. How should new-window behave with multiple files? > open all files in the new instance and one tab per file in case "use-tabs" is enabled? > (if use-tabs is disabled, okular will use multiple instances/windows anyway) or should it open > one window per file? > I suggest to call the option "new-instance" and then open all files in tabs. > If "use-tabs" is disabled then "new-instance" will have no effect. 100% in agreement. `--new-instance` is a better name and all files passed on that command line should open in tabs of the new instance. > 2. If the users want to use tab, they can enable them. Thus, I see no real use in "--new-tab". In fact, you are right. > 3. Instead of "--new-tab", I would prefer something like "--target <okular-dbus-name>" . > That flag would open all files in new tabs of the specified instance. Nice idea