Bug 313775 - Okular inverse search does not work.
Summary: Okular inverse search does not work.
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 0.15.5
Platform: openSUSE Linux
: NOR major
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-23 16:41 UTC by Joon Ro
Modified: 2013-02-10 20:50 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joon Ro 2013-01-23 16:41:41 UTC
I have described the bug in a forum thread:
http://forum.kde.org/viewtopic.php?f=251&t=109707&p=257441#p257441

I have perfectly working forward search between LyX and Okular, but strangely inverse search does not work.
For example, currently I have a tmp file from LyX and I can inverse search from command line:

$ lyxclient -g /tmp/lyx_tmpdir.n18490/lyx_tmpbuf18/paperall.tex 257
lyxclient: Connected to /tmp/lyx_tmpdir.n18490/lyxsocket
INFO:server-goto-file-row /tmp/lyx_tmpdir.n18490/lyx_tmpbuf18/paperall.tex 257:

But shift - click in Okular does not do anything. The Editor option is set to Lyx client:
    
    lyxclient -g %f %l

in okular 

I tried to invoke okular from the command line:

okular /tmp/lyx_tmpdir.n18490/lyx_tmpbuf18/paperall.pdf

But still no luck. Shift-click does not do anything.



Reproducible: Always

Steps to Reproduce:
1. Compile pdf in lyx
2. View PDF in lyx to invoke Okular, or invoke okular in command line
3. Shift - click on a word 
Actual Results:  
Nothing happens

Expected Results:  
Inverse search is invoked

My LyX version is 2.0.5.1 and Okular version is 0.15.5 with KDE 4.9.5 release 3 in openSUSE 12.2 x64
Comment 1 Albert Astals Cid 2013-01-23 19:58:18 UTC
Works fine here, are you sure you are in the browse mode and not in the text selection mode?
Comment 2 Joon Ro 2013-01-23 20:31:12 UTC
(In reply to comment #1)
> Works fine here, are you sure you are in the browse mode and not in the text
> selection mode?

That was the culprit. I cannot believe I wasted time over this. Thanks for letting me know.

I wonder where in the documentation did it say that it only works in the browser mode? I have never seen it mentioned - maybe I missed it (I just skimmed through the Okular handbook but could not find any), but I think the documentation on Inverse Search should clearly state this to prevent further waste of time of others.

Thank you,
Joon
Comment 3 Burkhard Lück 2013-01-24 19:50:20 UTC
Git commit b89488c6baa250ef93f9421b8457c5ac0c719daf by Burkhard Lück.
Committed on 24/01/2013 at 20:50.
Pushed by lueck into branch 'master'.

add info about Table Selection Tool and that browse tool mode is necessary for Inverse Search

M  +18   -2    doc/index.docbook

http://commits.kde.org/okular/b89488c6baa250ef93f9421b8457c5ac0c719daf
Comment 4 Joon Ro 2013-01-24 20:09:53 UTC
(In reply to comment #3)
> Git commit b89488c6baa250ef93f9421b8457c5ac0c719daf by Burkhard Lück.
> Committed on 24/01/2013 at 20:50.
> Pushed by lueck into branch 'master'.
> 
> add info about Table Selection Tool and that browse tool mode is necessary
> for Inverse Search
> 

Thank you so much! I actually was looking for a way to contribute but couldn't find a easy way. I appreciate it.
Comment 5 Burkhard Lück 2013-01-24 21:10:21 UTC
(In reply to comment #4)
> Thank you so much! 

You're welcome. 
This is a good example about the desired workflow for a documentation team:
"Listen to users needs/questions and integrate the info they miss"
 
> I actually was looking for a way to contribute but
> couldn't find a easy way. 
If you again get in such a situation either add kde-doc-english@kde.org as cc to a bug or send a note the mailinglist kde-doc-english@kde.org.
Then we'll try to care about it.

Thanks for reporting.
Comment 6 Joon Ro 2013-01-24 21:20:09 UTC
Got it. Thanks!
Comment 7 Burkhard Lück 2013-02-10 20:50:33 UTC
Git commit fd22b42b264f6f8e35934eb8fb5a6a0e1d1313ae by Burkhard Lück.
Committed on 24/01/2013 at 20:50.
Pushed by lueck into branch 'KDE/4.10'.

add info about Table Selection Tool and that browse tool mode is necessary for Inverse Search
backport to branch 4.10
(cherry picked from commit b89488c6baa250ef93f9421b8457c5ac0c719daf)

M  +18   -2    doc/index.docbook

http://commits.kde.org/okular/fd22b42b264f6f8e35934eb8fb5a6a0e1d1313ae