The --unique option is great! However, it would be great to have also a --unique-per-file option, so that if file A is already open and I try to open it again, it just reloads it, but if I try to open file B, a new Okular window/tab is opened (so that in the end I have two Okular windows/tabs and I can view both files simultaneously). This would be particularly useful together with tex compiling in Kile and the forward/inverse search --- see also http://forum.kde.org/viewtopic.php?f=251&t=89613&p=264987#p264987 Reproducible: Always
I still miss this option. Clarification: on an attempt to open a file that is already open, the following should happen: - the file is reloaded, - the position in the file is updated as specified in the URL that was sent to okular (after the # sign), - the okular window and tab with the file come to focus.
This seemed like a rather simple change, so I went ahead and tried implementing it. I am not sure I followed the right procedure, but I posted a patch to reviewboard here: https://git.reviewboard.kde.org/r/123676/
Hi, Is there anything missing for your patch to be applied? I'd really like to see this in Okular. Regards,
(In reply to Walter Rudametkin from comment #3) > Hi, > > Is there anything missing for your patch to be applied? I'd really like to > see this in Okular. > > Regards, It is not fully tested yet (missing unit tests)... If you are brave, you might try downloading Okular's source, applying the patch and building it yourself. I planned to work on it at the end of last year but unfortunately life again got into the way. As it stands, I currently don't have much time, so the chances of me finishing it soon are rather slim :-( Sorry for that.