Summary: | Wishlist: add command line options to force file opening in tab or in new window | ||
---|---|---|---|
Product: | [Applications] okular | Reporter: | Sergio <sergio.callegari> |
Component: | general | Assignee: | Okular developers <okular-devel> |
Status: | REPORTED --- | ||
Severity: | wishlist | CC: | andreas.naumann |
Priority: | NOR | ||
Version First Reported In: | 22.04.2 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Sergio
2022-06-21 09:14:40 UTC
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 Wonder if at least the `--new-instance` parameter could be introduced. Currently, there is this undocumented behavior so that if you want a new instance you can call `okular` without any parameters. In this case, even if an okular instance is already open, rather than "rising its windows" the invocation causes a new okular instance to be opened. At this point, you need to open files in it via menus and dialogs though. |