[Okular-devel] [Bug 282930] New: Make middle mouse button activate the inverse search feature

Christian Seiler christian at iwakd.de
Tue Sep 27 20:22:15 UTC 2011


https://bugs.kde.org/show_bug.cgi?id=282930

           Summary: Make middle mouse button activate the inverse search
                    feature
           Product: okular
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
        AssignedTo: okular-devel at kde.org
        ReportedBy: christian at iwakd.de


Created an attachment (id=64021)
 --> (http://bugs.kde.org/attachment.cgi?id=64021)
Patch: Make middle mouse button activate the inverse search feature

Version:           unspecified (using Devel) 
OS:                Linux

In KDE3, kdvi supported the use of the middle mouse button to jump to the line
in the latex source file of the current document. In okular this has only been
possible when using the shift + left mouse button combination.

In my eyes, the new way of activating the inverse search is not very
comfortable, since two hands are needed.

This patch adds the middle mouse button activate the inverse search feature,
while at the same time keeping the shift + left mouse button support. The patch
makes sure the feature is only activated if the user did not drag the mouse to
zoom while the middle mouse button was pressed. Previously, a simple middle
mouse click had no effect at all.

If the document does not contain any reference to a source file, the click with
the middle mouse button will have no effect. (The same behavior as shift + left
click.)

It would be great if this feature could be added to Okular, this would make
working with LaTeX a lot easier.

Reproducible: Always

Steps to Reproduce:
Use your favourite LaTeX editor and configure both it and okular properly that
inverse search works (i.e. choose build type "Modern" in Kile + choose the
editor "Kile" in okular configuration), generate a DVI and/or PDF file from a
sample latex source file in your editor, open it with okular and then

1) Middle-click on a paragraph
2) Hold shift and left-click on a paragraph

Actual Results:  
1) nothing happens (cursor may turn to "up-down-arrow" for a very brief amount
of time)
2) you jump to the corresponding line in the source code in your editor

Expected Results:  
You also jump into the editor when using the middle mouse button

Attached patch was made against current git master branch, but should be
trivially backportable to about any previous okular version.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Okular-devel mailing list