Skip to content

Double click on citation should open the LaTeX editor at the respective place #11996

@koppor

Description

@koppor

We have the push-to-application functionality. We also have the "LaTeX citations" functionality. It would be nice if I as user could navigate to the listed TeX file in the LaTeX editor by a double click.


The resulting code will add a method jumpToLine(Path fileName, int line, int column) to org.jabref.gui.push.PushToApplication.

Add default empty implementation, to avoid compile errors at the beginning.

Hints

  1. Leave out configuration of each tool; reuse org.jabref.gui.push.PushToApplicationPreferences and hard-code the parameters to jump to a line
  2. Implement for TeXstudio. texstudio --line "$lineno" "$file"
  3. The commandPath contains the path tot he executable.
  4. Optionally: implement for more applications (e.g., emacsclient +4:3 FILE)
  5. Optionally: Add VSCode as new push target

Note: The push to applications functionality is described at https://docs.jabref.org/cite/pushtoapplications.


Example:

  1. Open src\test\resources\pdfs\IEEE\ieee-paper.tex
  2. Double click on "Kopp et al."
  3. Select tab "LaTeX ciations" in entry editor
  4. Double click on the first entry in the table:
    Image
  5. See that nothing happens

Instead of 5, TeXstudio should be opened with ieee.tex opened and jumping to line 26.

Metadata

Metadata

Assignees

Labels

FirstTimeCodeContributionTriggers GitHub Greeter Workflowgood first issueAn issue intended for project-newcomers. Varies in difficulty.📍 AssignedAssigned by assign-issue-action (or manually assigned)

Type

No type
No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions