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
- Leave out configuration of each tool; reuse org.jabref.gui.push.PushToApplicationPreferences and hard-code the parameters to jump to a line
- Implement for
TeXstudio. texstudio --line "$lineno" "$file"
- The
commandPath contains the path tot he executable.
- Optionally: implement for more applications (e.g.,
emacsclient +4:3 FILE)
- Optionally: Add VSCode as new push target
Note: The push to applications functionality is described at https://docs.jabref.org/cite/pushtoapplications.
Example:
- Open
src\test\resources\pdfs\IEEE\ieee-paper.tex
- Double click on "Kopp et al."
- Select tab "LaTeX ciations" in entry editor
- Double click on the first entry in the table:

- See that nothing happens
Instead of 5, TeXstudio should be opened with ieee.tex opened and jumping to line 26.
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)toorg.jabref.gui.push.PushToApplication.Add
defaultempty implementation, to avoid compile errors at the beginning.Hints
TeXstudio.texstudio --line "$lineno" "$file"commandPathcontains the path tot he executable.emacsclient +4:3 FILE)Note: The push to applications functionality is described at https://docs.jabref.org/cite/pushtoapplications.
Example:
src\test\resources\pdfs\IEEE\ieee-paper.texInstead of 5, TeXstudio should be opened with
ieee.texopened and jumping to line 26.