-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Double click on citation opens LaTeX editor #12044
Changes from 19 commits
066bbab
b0821bf
87b5750
84fdf95
7f95c8b
a41d5dd
677c604
52158ee
eef355e
998659c
1c22c56
0a655ff
8294e73
45c6777
ac62f2d
0731c36
1387c4b
6bf9f30
1372e2a
7944ee3
85fa67e
d120835
6afaaef
b7b2312
b5040b3
5d0bbfb
ac33148
2d456a5
f48766b
b6bbf06
e117247
551b074
61395fa
aeedbb4
3b9fbac
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: On reviewed PR | ||
|
||
on: | ||
pull_request_review: | ||
types: | ||
- submitted | ||
|
||
jobs: | ||
add-label-changes-required: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
steps: | ||
- run: echo ${{ github.event.review.state }} | ||
- if: ${{ github.event.review.state == 'changes_requested' }} | ||
run: | | ||
gh pr edit "$PR_URL" --remove-label "status: ready-for-review" | ||
gh pr edit "$PR_URL" --add-label "status: changes required" | ||
env: | ||
PR_URL: ${{github.event.pull_request.html_url}} | ||
GH_TOKEN: ${{ github.token }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
import java.io.IOException; | ||
import java.io.InputStream; | ||
import java.nio.file.Path; | ||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
|
@@ -147,4 +148,9 @@ protected String getCommandName() { | |
public PushToApplicationSettings getSettings(PushToApplication application, PushToApplicationPreferences preferences) { | ||
return new PushToEmacsSettings(application, dialogService, this.preferences.getFilePreferences(), preferences); | ||
} | ||
|
||
@Override | ||
protected String[] jumpString(Path fileName, int line, int column) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Rename to |
||
return new String[] {commandPath, "+%s".formatted(line), fileName.toString()}; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
package org.jabref.gui.push; | ||
|
||
import java.nio.file.Path; | ||
|
||
import org.jabref.gui.DialogService; | ||
import org.jabref.gui.icon.IconTheme; | ||
import org.jabref.gui.icon.JabRefIcon; | ||
|
@@ -27,4 +29,10 @@ public JabRefIcon getApplicationIcon() { | |
protected String[] getCommandLine(String keyString) { | ||
return new String[] {commandPath, "--insert-cite", "%s%s%s".formatted(getCitePrefix(), keyString, getCiteSuffix())}; | ||
} | ||
|
||
@Override | ||
public String[] jumpString(Path fileName, int line, int column) { | ||
// Construct the TeXstudio command | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remvoe comment. It is clear from the context. |
||
return new String[] {commandPath, "--line", Integer.toString(line), fileName.toString()}; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,5 +1,7 @@ | ||||||
package org.jabref.gui.push; | ||||||
|
||||||
import java.nio.file.Path; | ||||||
|
||||||
import org.jabref.gui.DialogService; | ||||||
import org.jabref.gui.icon.IconTheme; | ||||||
import org.jabref.gui.icon.JabRefIcon; | ||||||
|
@@ -33,4 +35,10 @@ public JabRefIcon getApplicationIcon() { | |||||
protected String[] getCommandLine(String keyString) { | ||||||
return new String[] {commandPath, "--insert-text", "%s%s%s".formatted(getCitePrefix(), keyString, getCiteSuffix())}; | ||||||
} | ||||||
|
||||||
@Override | ||||||
protected String[] jumpString(Path fileName, int line, int column) { | ||||||
// didn't find any command to jump to a specific line | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
return new String[] {commandPath, fileName.toString()}; | ||||||
} | ||||||
} |
+1 −8 | .github/workflows/sheldon.yaml | |
+28 −31 | locales-de-AT.xml | |
+31 −44 | locales-de-CH.xml | |
+23 −26 | locales-de-DE.xml |
+1 −8 | .github/workflows/sheldon.yaml | |
+0 −162 | advanced-science.csl | |
+4 −7 | anesthesiology.csl | |
+0 −1,889 | british-psychological-society.csl | |
+4 −5 | clinical-orthopaedics-and-related-research.csl | |
+14 −3 | cultural-geographies.csl | |
+0 −19 | dependent/vilnius-gediminas-technical-university.csl | |
+0 −193 | enfances-familles-generations.csl | |
+95 −86 | hochschule-bonn-rhein-sieg.csl | |
+22 −32 | hydrobiologia.csl | |
+0 −289 | international-affairs.csl | |
+0 −566 | iso690-full-note-es.csl | |
+2 −2 | organization-studies.csl | |
+21 −25 | pacific-conservation-biology.csl | |
+1 −1 | parasite.csl | |
+0 −568 | polytechnique-montreal-ieee.csl | |
+0 −193 | respirology.csl | |
+4 −10 | review-of-political-economy.csl | |
+188 −0 | vilnius-gediminas-technical-university.csl | |
+30 −43 | zootaxa.csl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this appearing - I removed in
main
. Please remove this file from your branch.